footer code position before external scripts is overridden
-
Your plugin is great, no doubt about it.
Now, I have an issue that I think everyone has without noticing: the code we add in the “footer” is overridden by the scripts that are loaded after.
It’s an order priority issue between plugins maybe, I don’t know. The code we add in the footer do appear in the footer that’s true, but at the very beginning. Your plugin place it before the wordpress scripts, jquery, and any other CDNjs scripts we may add via WP CDNjs plugin or else.
Is this the correct way to do it? I cannot believe I’m the only one having this issue.
IMHO It should be after all of these additional scripts, at the very end. Because the js code we add may be jquery, so it won’t work. And because the CSS we add will be overridden by the scripts loaded after. Think about Bootstrap, AnchorJS etc.
Why is so?
Is there any way to change this?
Will an option to place the footer code at the very end be available in the future versions?thanks
- The topic ‘footer code position before external scripts is overridden’ is closed to new replies.