Suggested fix: Loading plugin (and js) in the footer
-
Hi friend
First of all, thanks for your efforts in making this plugin.
I suggest a small tweak to the code, to make WP load the plugin’s js at the footer (a good practice in general) –Change the following line 437:
wp_register_script( ‘avatar-manager’, AVATAR_MANAGER_PLUGIN_URL . ‘assets/js/avatar-manager’ . $suffix . ‘.js’, array( ‘jquery’ ), ‘1.2.1’ );To:
wp_register_script( ‘avatar-manager’, AVATAR_MANAGER_PLUGIN_URL . ‘assets/js/avatar-manager’ . $suffix . ‘.js’, array( ‘jquery’ ), ‘1.2.1’, true );Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggested fix: Loading plugin (and js) in the footer’ is closed to new replies.