Load Script in head before all others scripts

Posted in: Newspaper
Post count: 39

Hello,

How can i load a script in head before all others scripts ? I tried to load the script in Newspaper Panel “Header script code” field but the script is loaded after other plugins scripts.

Thanks

Post count: 27744

Hello,

You can set the code in Theme Panel -> Analytics/Js Codes => https://prnt.sc/10jk7fq

Hope this helps you!

Thank you!

Post count: 39

Thanks. I tried this solution. But i need to load the script before all others plugins. When i set a script in Theme Panel -> Analytics/Js Codes, the script is loader after other plugins, like Site Kit For Google for example
Thanks

Post count: 27744

Hello,

An alternative is to use a plugin to do this (maybe using some plugins for js inserting in head/footer/body will set the code above before loading plugins) or set the code in the theme files (but this is not recommended).

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.