Skip to main content
deleted 22 characters in body
Source Link
Wordpressor
  • 5.1k
  • 19
  • 70
  • 102

My Wordpress theme has a lot of .js scripts running and it takes plenty of time to load them all one by one. I would love to use a script loader like HeadJS or yepnopejs to speed things up.

But... what about wp_enqueue_script? I'm using it to load every single script (and I believe that's the ONLY & BEST & ONLY way to load scripts in Wordpressgo?).

Won't loading scripts using script loader instead of wp_enqueue_script create any conflicts with plugins, widgets etc.?

What about enqueuing the script loader itself?

My Wordpress theme has a lot of .js scripts running and it takes plenty of time to load them all one by one. I would love to use a script loader like HeadJS or yepnopejs to speed things up.

But... what about wp_enqueue_script? I'm using it to load every single script (and I believe that's the ONLY & BEST way to load scripts in Wordpress).

Won't loading scripts using script loader instead of wp_enqueue_script create any conflicts with plugins, widgets etc.?

What about enqueuing the script loader itself?

My Wordpress theme has a lot of .js scripts running and it takes plenty of time to load them all one by one. I would love to use a script loader like HeadJS or yepnopejs to speed things up.

But... what about wp_enqueue_script? I'm using it to load every single script (and I believe that's the BEST & ONLY way to go?).

Won't loading scripts using script loader instead of wp_enqueue_script create any conflicts with plugins, widgets etc.?

What about enqueuing the script loader itself?

Source Link
Wordpressor
  • 5.1k
  • 19
  • 70
  • 102

Script loaders vs wp_enqueue_script

My Wordpress theme has a lot of .js scripts running and it takes plenty of time to load them all one by one. I would love to use a script loader like HeadJS or yepnopejs to speed things up.

But... what about wp_enqueue_script? I'm using it to load every single script (and I believe that's the ONLY & BEST way to load scripts in Wordpress).

Won't loading scripts using script loader instead of wp_enqueue_script create any conflicts with plugins, widgets etc.?

What about enqueuing the script loader itself?