How to control where plugins will add Javascript code in the page structure


A number of plugins add Javascript code inside the <head> tag. I would like to move Javascript code at the end of my page to avoid it blocking the page from loading.

I understand that individual plugins use add_action, add_filter and possibly other methods in order to hook their own code inside the page generation process, but my knowledge of this process is still vague.

How do plugins inject references to Javascript / CSS files into the HTML code of a page?

, , Emanuele Ciriachi 4 years 2019-11-05T14:45:08-05:00 0 Answers 69 views 0

Leave an answer