[META] Page load speed improvements
See original GitHub issue[META] Page load speed improvements - meta bug
The page load speed of the new developer portal can be easily improved by adopting standard performance practices. The following were observed by running the foo.developer.azure-api.net developer portal link through the WebPageTest.org test harness:
1 . GZIP compression is not used by the server
-
The theme’s static assets are not served with Cache-Control headers (max-age and expires)
-
CDN is not used for static assets or image assets
Out of the above (1) and (2) are really easy to do, and should done quickly in the hosted APIM configuration (i.e NOT the self-hosting configuration)
Reproduction steps
- Go to webpagetest.org, and paste link of any managed developer portal: e.g
foo.developer.azure-api.net
- Run test in default configuration (Dulles, VA test client + any Azure region APIM developer portal)
- See ‘F’ grade in content serving.
Expected behavior
A grade in “compress transfer”, and “cache static content” categories on WebPageTest.org test results
Is your portal managed or self-hosted?
Managed
Release tag or commit SHA (if using self-hosted version)
Managed version as of 6-Jan-2020
API Management service name
Any
Environment
Any browser
Additional context
Page loading speed is critical for public-facing developer portals.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top GitHub Comments
Today and the last week, the loading speed of DevPortal pages was a nightmare for different environments. The speed is varying from immediately if part of the cache up to several minutes for switching between single pages. A high and consistent page load speed is crucial to get a good user experience. Currently, it is like an old car you try to start when you switch between pages. Could work properly or could take forever.
Headers have already been added; compression still pending implementation.