Closed Bug 1001666 Opened 11 years ago Closed 10 years ago

Move non-essential stuff outside of include.js

Categories

(Marketplace Graveyard :: Code Quality, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: clouserw, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [marketplace-transition])

From bug 987895: > > 7] include.js is clearly a bottleneck for you. It seems to load most of the > > other resources (sometimes indirectly?), but that can't happen until the > > script is loaded completely... and it appears to have a lot of stuff that is > > extraneous to the frontpage on it.. credits.html for example is inlined in > > it. it seems you would be much better off loading that stuff separately.
Priority: -- → P3
Currently include.js contains everything: the javascript for the views, helpers, all the js code, but also all the templates, inlined. Splitting it into two files would allows us to get the XHRs sooner, but it's non-trivial, because what's essential varies from page to page. Since we are a single page app, https://marketplace.firefox.com/credits loads the same HTML+JS+CSS as https://marketplace.firefox.com/, we choose the template to display in JavaScript. IMHO changing that is non-trivial and risky, and we might get more headaches than performance gains.
Summary: Audit include.js for extraneous data → Move non-essential stuff outside of include.js
Depends on: 1089656
Depends on: 1089662
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Whiteboard: [marketplace-transition]
You need to log in before you can comment on or make changes to this bug.