Script order after merging scripts
-
My own scripts on my site are loaded after external scripts. I load all of them using the
wp_enqueue_script
function and specify the dependencies. However, when I enable script aggregation in Autoptimize, my own scripts are loaded before the external ones. How can I preserve the original order? Any solution would be fine, including writing a custom plugin to address the issue.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.