ElkArte Community

Project Support => General ElkArte discussions => Topic started by: Antechinus on June 23, 2013, 05:33:40 pm

Title: Javascript load order/performance.
Post by: Antechinus on June 23, 2013, 05:33:40 pm
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?