• Resolved stream14

    (@stream14)


    hello team autoptimize, is it possible to delete the version (ao_version=2.7.1) of the lazyload url autoptimize/classes/external/js/lazysizes.min.js?ao_version=2.7.1 ?
    thank you in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    yes, with this code snippet;

    
    add_filter('autoptimize_filter_imgopt_lazyload_js','remove_lazysizes_version');
    function remove_lazysizes_version($in) {
    	return str_replace('?ao_version=' . AUTOPTIMIZE_PLUGIN_VERSION, '', $in);
    }

    hope this helps,
    frank

    Thread Starter stream14

    (@stream14)

    it works well, thank you very much

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome stream14 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘lazysizes’ is closed to new replies.