How to output external js file as inline script in wordpress?

Viewed 120

I have a js file that I would like to output in my wordpress section as inline js code.

For example I have this file: "//example.com/js/tracking.js" and I need code of this file to be printed inline between in the site's head - To avoid fetching this file from the server separately.

Hope someone can help me.

Thanks

0 Answers
Related