• Hi. I want to optimize google ads. I get this error. asking money to repair this error. Unfortunately I have no money. I also did a lot of research on the internet. I found some codes.

    Code: https://textuploader.com/18l8l

    I added this code to the foother section in the jannah theme. did not work. can you help me?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Needing to defer JS isn’t an error, it’s a recommendation ?? Anyway, moving inline script to just before the closing </body> tag is as deferred as inline script gets. We formally defer only external script files by including defer or async attribute in the associated <script> tag. This only works when there’s a src attribute in the tag.

    When WP enqueues external script files, there’s no option to include these attributes, the best it’ll do is move the <script> tag from header to footer. The enqueuing scheme needs modification to include defer attributes. Some optimization and caching plugins will do this for you. IMO, you should want to use such a plugin whether you needed to defer or not.

Viewing 1 replies (of 1 total)
  • The topic ‘How to defer parsing of JavaScript’ is closed to new replies.