Exclude not needed javascripts | WordPress.org

[ad_1]

Can you add options (in admin dashboard) to exclude Js files that aren’t needed?

For example, if I choose no to show fullscreen button, I could exclude

/lightbox-photoswipe/assets/ps5/fullscreen/photoswipe-fullscreen.esm.min.js

and if I choose not to use dynamic captions, I could exclude

/lightbox-photoswipe/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.min.js

So we can save some Kilobites and some Server Requests…

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer