• Hello!

    I’m getting this error on the console of Google Chrome

    
    (index):483 Uncaught ReferenceError: jQuery is not defined
        at (index):483
    

    After searching a little bit I see that is coming from this fragment on the HTML code

    
    <script>
                jQuery(document).on("berocket_aapf_time_to_fix_products_style", function() {
                    jQuery(the_ajax_script.products_holder_id).find("*").filter(function() {return jQuery(this).css("opacity") == "0";}).css("opacity", 1);
                });
                </script>
    

    Is there a way to fix this?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dmytro Holovnia

    (@dholovnia)

    You are using litespeed optimizer. It is deferring jQuery load to the end of the file. But some code should be executed on the go. Exclude jQuery from the litespeed to not touch it.

    Regards,
    Dima

    Thread Starter itaquito

    (@itaquito)

    Is there a way to make that piece of script load after JQuery loads?

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    No, plugin do not have any settings to change it.

    Regards,
    Oleg

    niburu

    (@niburu)

    WP rocket allows to exclude scripts. Which java script is making the call so i can exclude it without turning of the option?

    @itaquito updating to the newest version and deleting your cache fixes the error

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘jQuery error on client console’ is closed to new replies.