• Resolved Sebastian Pisula

    (@sebastianpisula)


    To optimize the website, all JS scripts (including jQuery) are moved to the footer. However, there is a problem in the console for the plugin because HTML code with JavaScript script in jQuery is added too early.

    I think this script will help reproduce the problem:

    add_action(
    	'wp_enqueue_scripts',
    	static function () {
    		wp_deregister_script( 'jquery' );
    		wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.min.js' ), [], '3.6.4', true );
    	},
    	20
    );
Viewing 1 replies (of 1 total)
  • Plugin Support Saiful Islam

    (@saifislam01)

    Hi @sebastianpisula,

    Thanks for sharing the script.

    I am letting the developer team know about it. I hope they will definitely take the necessary steps regarding this issue.

    Regards!

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t find variable: jQuery’ is closed to new replies.