Skip to content

Test Page for HTTP/2 prioritization (server and browser)

License

Notifications You must be signed in to change notification settings

pmeenan/http2priorities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http2priorities

Test Page for HTTP/2 prioritization (server and browser)

This is a test page for exercising HTTP/2 prioritization (particularly for Chrome). It is structured in such a way that the preload scanner will discover low-priority images that are displayed below the viewport and start loading them before 4 high-priority resources are discovered:

  1. The custom font used for the page (not discovered until layout).
  2. The background "pebble" image used for the page background (not discovered until layout).
  3. The image of the car visible in the viewport (injected by javascript at the top of the page).
  4. A blocking script at the end of the document (injected by document.write).

The text near the top of the page will also change after the last blocking script is loaded to indicate that DOMContentLoaded has fired.

The test should work well on all modern browsers but it depends on browsers doing something intelligent with priorities. It was crafted specifically to exercise Chrome's prioritization and expose server prioritization issues.

To test, I HIGHLY recommend running the testing with a slow network connection (1.6 Mbps 3G should be fine). That will make any issues glaringly obvious.

When it is working well you will see the important resources at the end of the waterfall completing quickly:

Waterfall with important resources completing late.

When it is not working well you will see them delayed significantly:

Waterfall with important resources completing late.

The visual experience is also significantly faster when working correctly:

Filmstrip

About

Test Page for HTTP/2 prioritization (server and browser)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published