Having many javascript files loading will slow down your page load!
For that reason, I cover the 2 most common optimization tactics below:
- Defer them if they aren’t critical for initial page rendering.
- On pages where they aren’t used, disable them from loading at all.
How to defer javascript?
- You can use one of those javascript merge or aync javascript plugins. They defer to the end of page load. Again, don’t defer any javascript that’s needed for initial page rendering (for example: JS related to sliders at the top of the page).
How to disable unnecessary javascript from loading?
- Try those plugin organizers. Like “Plugin Load Filter” or “Plugin Organizer”.
Leave a Reply