• Hi,

    I use W3 Total Cache with minified and merged JavaScripts, including /wp-content/plugins/a3-lazy-load/assets/js/jquery.lazyloadxt.extend.js?ver=1.9.3

    class A3_Lazy_Load–>__construct() calls $a3_lazy_load_excludes->check_excluded()
    and ends if AS_Lazy_Load is excluded.

    It is excluded for example on all 404 pages, but not only on these.

    The problem is, that when /wp-content/plugins/a3-lazy-load/assets/js/jquery.lazyloadxt.extend.js?ver=1.9.3 is configured with W3 Total Cache (or any similar plugin), the script is executed, even if it is not included by A3 Lazy Load plugin.

    In such a situation, the script throws JavaScript error in:
    jQuery.lazyLoadXT.edgeY = a3_lazyload_extend_params.edgeY;

    because a3_lazyload_extend_params is not present in HTML code of the page.

    The simplest solutions should be to make the script work even if a3_lazyload_extend_params is not defined.

    Could you please do it?

  • The topic ‘Fix JS error on is_404() pages witch JS combined’ is closed to new replies.