Hi,
What is the difference between including JS plugin files one by one and AJAX Lazy Loading.
Which is better in performance?
Individual JS Plugins
If you care about performance, you must definitely consider using this method. Instead of loading all the Plugins using the plugins.min.js File, you can consider adding individual JS Plugin Files to the Page, like the plugins.toggles.js File. This way you can control what JS Plugins are loaded on your Page.AJAX Lazy Loading
This method is for the Performance Buffs and Beginner Users alike. It does not require any js/plugins.*.js File on the Page. If you choose to use this method, the js/functions.js File will intelligently do all the work for you and load only those JS Plugins on the Page which are required based on the JS Elements available on the Page.
Suppose, if your FAQs Page has the Toggle Element, then the plugins.toggles.js JS Plugin will be loaded automatically on the FAQs Page but not on other pages where the Toggles Element does not exist.
This way your Website remains light and fast.
