Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
A casual glance at several page's HTML source code reveals that <script> elements do request the same JavaScript resources multiple times (e.g. jQuery and its modules/minified versions). This phenomenon also covers (to a lesser extent) CSS ressources.
This is a consequence of TVB's adapter architecture IMO. To see this in action, try e.g. the Burst or the Surface Stimulus page.
The culprits are the pseudo header sequences from each adapter. I understand they want to be independent, so they each request their own resources in order to survive in different coding contexts.
Regarding redundant CSS rssources, that's not such a big problem as multiple requests to the same CSS file hit the browser cache.
For JS resources, however, I'm not so sure:
I don't think that multiple requests for the same .js file hit the browser cache. And these .js files tend to be large!