Loading assets only when required for optimum performance
-
Currently, the page loads a bunch of javascript files on all the pages, regardless of whether the functionality is used or not, also not considering whether Gutenberg is even active on that page or not in the first place.
So, a few suggestions:
1. Checking whether Gutenberg is active (we use Elementor on a lot of landing pages and having Ghostkit styles and scripts loaded on those pages makes no sense)
2. Only loading the functionality related JS files when they are used. Eg: Jarallax, Swiper Gist, Scrollsimple, etc.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Loading assets only when required for optimum performance’ is closed to new replies.