wp_enqueue_scripts vs wp_print_scripts
-
Line 1260 of
google-analyticator.phpuseswp_print_scriptswhich since WordPress 3.3, should not be used to enqueue styles or scripts. Instead, use https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference/wp_enqueue_scripts.Part of the problem with
wp_print_scriptsis that it prevents JS minification plugins from working cleanly because it could be a render-blocking JavaScript request.
The topic ‘wp_enqueue_scripts vs wp_print_scripts’ is closed to new replies.