• After : https://www.ads-software.com/support/topic/working-version-for-wp36x-and-update-minify-library-to-217

    There is a new version to test : [Working version for WP3.6.x, update Minify library to 2.1.7 and deferred beta]

    [DOWNLOAD-MEGA]
    https://tiny.cc/ugly4w

    [screenshots]
    https://bayimg.com/gaAlcAaFp (sorry i’m french so the plugin in the photo is in fr ^^)
    https://bayimg.com/hAaLlaAfp (code in footer)

    I work to add a deferred capacity for the .js
    for me it work but it’s an early version if you guys can test it with all the différent features of the plugin bwpminify to list and create a new todo list, thanks a lot !

    ————————————

    PS : I’m not sure but if you have already the plugin in action on your wordpress update it with that version next :
    1 : Desactivate it and reactivate it (to make an update in dtb).
    2 : If it don’t work :
    install the plugin : option optimizer and go to setting/option optimizer and check in delete collumn ‘bwp_minify_general‘ an validate to clean the option in dtb.
    Then simply desactivate the plugin and reactivate it ??

    ————————————
    ————————————

    I propose some improvement to make for the next version like :
    – capabilitie to change the expire date of the cache dirrectly in the admin page (in process)
    – capabilitie to Make script asynchrone (in beta)
    – capabilitie to minify script from CDN (useless cdn is way better)
    – possibility to select order loading javascripts and css
    – …

    Other idéas ?

    https://www.ads-software.com/plugins/bwp-minify/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter JibsouX

    (@jibsoux)

    /// LITTLE BONUS ///
    A DAM’N GOOD HT ACCESS

    Thread Starter JibsouX

    (@jibsoux)

    New improvement add to the todo list :
    Clean wp-options table when the plugin is deleted (clean plugin ;-))
    bwp_minify_general

    Thread Starter JibsouX

    (@jibsoux)

    QUESTION FROM https://www.ads-software.com/support/topic/working-version-for-wp36x-and-update-minify-library-to-217?replies=21#post-4761842

    RESPONSE :
    Nop i use the js of the plugin wp deferred

    if a script is loaded in the header it stay on the header and all data stay to

    but if there is header and footer script there is a double load of lab.min.js i working on it ??

    Thread Starter JibsouX

    (@jibsoux)

    //////// [ UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE ] ////////

    [Defferring capacity / Beta 2]
    How to : simply replace the plugin by this one then désactivate and réactivate it to update the dtb !

    1 . ADD FUNCTIONALITY IN SETTING : Scripts to not deferred (not asynchrone)
    https://bayimg.com/FABcIaaFA

    2 . RéSOLVED : double load of lab.min.js when there was header and footer script !

    //
    [DOWNLOAD-MEGA]
    //

    ___________________
    The modifications :

    function print_scripts($action = 'header')
    	{
    		do_action('bwp_minify_before_' . $action . '_scripts');
    		// Print script tags
    		$scripts = ('header' == $action) ? $this->header_scripts : $this->footer_scripts;
    
    		foreach ($scripts as $script_array)
    		{
    			if (0 < sizeof($script_array))
    				// If setting Deferring actif
    				if ('yes' == $this->options['enable_deferring']){
    					// Deferring
    						$to_deferring = implode(',', $script_array);
    						$scheme_str = is_ssl() && !is_admin() ? 'https://' : 'https://';
    						$path_and_deferring = apply_filters('bwp_get_minify_src', trailingslashit(str_replace(array('https://', 'https://'), $scheme_str, $this->options['input_minurl'])) . '?f=' . $to_deferring, $this->options['input_minurl']);
    						$do_deferring .= '<script>'.'$LAB'.'.script("'.$path_and_deferring.'").wait();</script>';
    					echo $do_deferring;
    					// End of deferring
    				}
    				else {
    				 echo $this->get_minify_tag(implode(',', $script_array), 'script');
    				}
    		do_action('bwp_minify_after_' . $action . '_scripts');
    		}
    	}
    function print_header_scripts()
    		// If setting Deferring actif (verification if there is some script in header)
    	{	if ('yes' == $this->options['enable_deferring']){
    		$verif_header = ($this->header_scripts);
    			foreach ($verif_header as $verif_header_string)
    			// if there is some script in header > echo...
    			if (!empty($verif_header_string)){
    				echo '<script src="' . plugin_dir_url( __FILE__ ) . 'js_deferred/lab.min.js"></script>' . "\r\n";}}
    		$this->print_scripts();
    		do_action('bwp_minify_printed_header_scripts');
    	}
    
    	function print_footer_scripts()
    		// If setting Deferring actif (verification if there is some script in header)
    	{	if ('yes' == $this->options['enable_deferring']){
    			$verif_header = ($this->header_scripts);
    				foreach ($verif_header as $verif_header_string)
    				// if there is no script in header > echo...
    				if (empty($verif_header_string)){
    					echo '<script src="' . plugin_dir_url( __FILE__ ) . 'js_deferred/lab.min.js"></script>' . "\r\n";}}
    		$this->print_scripts('footer');
    		do_action('bwp_minify_printed_footer_scripts');
    	}

    Bonjour JibouX, as tu un email pour que nous échangions ?

    Thread Starter JibsouX

    (@jibsoux)

    hey tu est fran?ais ?? bon a savoir pour les prochain email par-contre ici on continuera en eng pour que tout le monde comprenne ??
    envoi moi ton email sur [email protected] je te répondrais via ma vrais adresse !
    ++

    email sent ??
    No soucy

    Project created on github
    https://github.com/sireneweb/bwp-minify

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Working version for WP3.6.x, update Minify library to 2.1.7 and deferred beta]’ is closed to new replies.