• wube

    (@wujek_bogdan)


    Hi,

    At the moment wp_print_scripts() function is used to load the rve.min.js file.

    WP Codex says that “wp_print_scripts should not be used to enqueue styles or scripts on the front page.”

    Scripts should be registered using wp_register_script() function and enqueued using wp_enqueue_script() function. ‘wp_enqueue_scripts’ action is a right hook to do that.

    If scripts are registered/enqueued in a right way then theme authors are able to manage scripts loading easily. For example I can dequeue plugin’s files for a specific page, or enqueue them only for specific ones using wp_deregister_script() function.

    https://www.ads-software.com/plugins/responsive-video-embeds/

  • The topic ‘Scripts are enqueued using the wrong action’ is closed to new replies.