Skip to main content
Topic: Javascript load order/performance. (Read 14353 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Javascript load order/performance.

Was just wondering about something and am too lazy to try and find it in the depths of sauces\.

Where is the Query plugins stuff being loaded? Reason I ask is because I found I could load all menu and smooth scroll code at the end of index.template.php and it would still work just fine. jQuery itself needed to be loaded up top, but not any of the stuff that worked from it.

Also, was wondering if we should split up the jQuery plugins a bit. If someone is using click menus, it's inefficient to make them cache and parse Superfish, when they're only using Superclick (as I undestand it). Cutting the js down should be particularly useful for small gizmos with touchscreens. Can the two plugins be separated?
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P