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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.