Making WordPress.org

Opened 3 years ago

Last modified 3 years ago

#5780 new enhancement

Defer and move navigation.js

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by:
Milestone: Priority: lowest
Component: General Keywords: performance seo
Cc:

Description (last modified by jonoaldersonwp)

https://s.w.org/style/js/navigation.min.js is loaded in the footer of all wp.org templates, in a render-blocking manner.

The approach should be altered to:

  • Move the <script> tag into the <head>
  • Add a defer attribute

This will allow the script to be downloaded asynchronously but delay execution until after the page is loaded.

Change History (1)

#1 @jonoaldersonwp
3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.