• Hi there, I was just working on improving the performance of a project while i noticed that your plugin does not minify your own JavaScript (photoswipe-masonry.js).

    Please add a minified version (photoswipe-masonry.min.js) and enqueue that in photoswipe-masonry.php instead of the unminified version.

    wp_enqueue_script( 'photoswipe-masonry-js', $photoswipe_wp_plugin_path . '/photoswipe-masonry.min.js');

    Same goes for the your CSS, the following files are not minified:

    1. photoswipe.css
    2. default-skin.css
    3. all other skins

    https://www.ads-software.com/plugins/photoswipe-masonry/

Viewing 1 replies (of 1 total)
  • Hi Again,

    I did have it minimised but it makes it harder for novice users to edit the plugin and it’s only a small script.

    I suggest using a caching plugin to minify and combine all your scripts!

Viewing 1 replies (of 1 total)
  • The topic ‘Minify JavaScript – Performance Improve’ is closed to new replies.