firefox-devtools / firefox-devtools/profiler

Homepage startup speed improvements

Open
#3,820 0 comments 0 reactions 0 assignees View on GitHub
homepage perf
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

Profile: https://share.firefox.dev/3nxO0rj

Main take aways:

* before-load.js takes a lot of time => we could at least inline it inside index.html. But we can also look at whether it could be changed: the redirection part could possibly be replaced with [Clear-Site-Data](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data) (if netlify allows it). Maybe it's also fine that this script is ran with "async" attribute, we may not need it to be synchronous.
* [extracting CSS](https://github.com/firefox-devtools/profiler/issues/1233) could be useful
* [preloading](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/preload) app.ftl for english could be good

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-502)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.