THE PROBLEM: Scripts can often impair loading of pages. Browsers choke, users get frustrated with waiting, customers go elsewhere.
THE CAUSE everybody uses the jQuery(document).ready(); event to load their scripts. Everything is trying to load all at once and bogging down the processor and working memory on the client machine.
THE FIX: don’t use jQuery(document).ready() to load everything.
Bind your scripts to user actions like mousemove, mouseenter, click, etc.
This way your scripts only load when they’re needed and the page loads quickly, without hanging browsers and annoying users.
That’s it! Easy peasy. NEVER forget!