Support » Plugin: Responsive Lightbox & Gallery » prettyPhoto not minified?

  • Not a big deal but I noticed that ...assets/prettyphoto/js/jquery.prettyPhoto.js isn’t minified. I tried to de-register and re-register it on my theme, but that didn’t work.

    /**
    * De-register Scripts and Styles
    */
    
    add_action( 'wp_print_scripts', 'deregister_javascript', 100 );
    function deregister_javascript() {
    
    	wp_deregister_script( 'responsive-lightbox-prettyphoto' );
    	wp_dequeue_script( 'responsive-lightbox-prettyphoto' );
    
    }
    
    /**
    * Enqueue Scripts and Styles
    */
    add_action( 'wp_enqueue_scripts', 'enqueue_scripts_styles' );
    function enqueue_scripts_styles() {
    
    	wp_register_script( 'prettyphoto-js', get_stylesheet_directory_uri() . '/js/prettyPhoto/jquery.prettyPhoto.min.js', array( 'jquery' ), '', true );
    
    	wp_enqueue_script( 'prettyphoto-js' );
    
    }

    I can obviously copy it to the plugin, but I’ll lose it when the next update. Can you help here or at least include a minified version?

    https://wordpress.org/plugins/responsive-lightbox/

  • The topic ‘prettyPhoto not minified?’ is closed to new replies.