We have 2 list view buttons on one page and each references the same js file (e.g., hosted on googleapis.com) having line of code:
{!REQUIRESCRIPT("https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.js")}
Every time list view page that has these 2 buttons is loaded it downloads this js file 2 times (for 2 buttons). For the 2nd button it doesn't use browser cache (file downloaded for 1st button), because SF adds different tokens every time external resource is requested using REQUIRESCRIPT function. E.g.,
-for the 1st button: https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.js?_=1437493934758&callback=jsonp36
-for the 2nd button: https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.js?_=1437493937970&callback=jsonp44
In case of having 5 such buttons when every button references e.g. 3 files and every file takes e.g. 1 sec to load (by the way, it can be hosting other than googleapis.com) this will take 5*3*1=15 sec to load for all buttons. It can be an issue, since user sees that page is loaded, buttons are available but every single button doesn't work until it loaded all js files referenced by REQUIRESCRIPT function (as I've observed SF loads them one by in order buttons are placed on page).
Is there a way to force SF using cache or get rid of these tokens when using REQUIRESCRIPT function, so js from cache could be used for the 2nd button in my first example?
Thanks