Making WordPress.org

Opened 7 months ago

Last modified 7 months ago

#5780 new enhancement

Defer and move navigation.js

Reported by: jonoaldersonwp Owned by:
Milestone: Priority: lowest
Component: General Keywords: performance seo

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
7 months ago

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