Forums

NextGEN Gallery
[resolved] Optimize loading of piclens (2 posts)

  1. Bart Lauwers
    Member
    Posted 8 months ago #

    Alex,

    I noticed that nextgen-gallery loads the piclens library from the page head. Can you please adjust how this resource is loaded so that it loads from the page footer? I also included the reworked code from my WP install that does this. This version has the advantage of avoiding conflicts with other plugins that use piclens by asking WP to load the script for us.

    lib/media-rss.php:

    /**
     * Add the javascript required to enable PicLens/CoolIris support
     */
    function add_piclens_javascript() {
        wp_enqueue_script( 'piclens', 'https://lite.piclens.com/current/piclens_optimized.js', array(), false, true);
    }

    Thanks,
    Bart

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Alex Rabe
    Member
    Posted 8 months ago #

    Thanks for the note, will change that

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.