Closed
Bug 985552
Opened 11 years ago
Closed 10 years ago
add l10n.js to include.js bundle
Categories
(Marketplace Graveyard :: Consumer Pages, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
2015-03-24
People
(Reporter: mat, Assigned: kngo)
References
Details
(Keywords: perf, Whiteboard: [qa-])
We currently load l10n.js and include.js separately, making 2 HTTP requests instead of just one. We should add l10n.js to the include.js bundle to fix that.
Comment 1•11 years ago
|
||
Is this still a problem if we get SPDY on the CDN? This would perform better on SPDY wouldn't it?
| Reporter | ||
Comment 2•11 years ago
|
||
SPDY would fix it but since we don't know when that'll happen it's probably best to tackle this now.
| Reporter | ||
Updated•11 years ago
|
Assignee: nobody → mpillard
Comment 3•11 years ago
|
||
Well right now `include.js` is deferred in production, letting us load `l10n.js` and then the localisations before we load anything else in `include.js`.
We'd have to maintain that order.
| Reporter | ||
Comment 4•11 years ago
|
||
Ah, now I get it. That makes this bug pretty annoying to fix. I'll lower priority for now.
Priority: P2 → P3
Updated•11 years ago
|
Blocks: tarako-marketplace
Updated•11 years ago
|
No longer blocks: tarako-marketplace
| Reporter | ||
Updated•11 years ago
|
Assignee: mpillard → nobody
Updated•11 years ago
|
Blocks: marketplace-perf
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kngo
| Assignee | ||
Comment 5•11 years ago
|
||
I can at least split it l10n.js into a global part and requirejs part so that duplicate code is not included twice.
| Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → 2015-03-17
| Assignee | ||
Updated•10 years ago
|
Summary: Add l10n.js in include.js bundle → split l10n.js into the pre-include.js l10n initialization and the AMD l10n module
| Assignee | ||
Comment 6•10 years ago
|
||
https://github.com/mozilla/marketplace-core-modules/pull/30
This improves things a bit by reducing the l10n.js size.
For future reference, an idea might be to stop deferring include.js, remove the insertRequire from marketplace-gulp so it's not automatically run, and invoke our include.js bundle (with require) on onload for the locale JS script.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
| Assignee | ||
Comment 7•10 years ago
|
||
^ Assuming we stick l10n.js before include.js
| Assignee | ||
Comment 8•10 years ago
|
||
Working on combining l10n.js and include.js into one bundle, while keeping the logic that we wait for l10n to initialize before we initialize the app.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: split l10n.js into the pre-include.js l10n initialization and the AMD l10n module → add l10n.js to include.js bundle
Target Milestone: 2015-03-17 → 2015-03-24
| Assignee | ||
Comment 9•10 years ago
|
||
| Assignee | ||
Comment 10•10 years ago
|
||
https://github.com/mozilla/marketplace-core-modules/pull/32
https://github.com/mozilla/marketplace-gulp/pull/17
https://github.com/mozilla/fireplace/pull/1083
https://github.com/mozilla/commbadge/pull/75
https://github.com/mozilla/transonic/pull/94
https://github.com/mozilla/marketplace-operator-dashboard/pull/21
https://github.com/mozilla/marketplace-style-guide/pull/12
https://github.com/mozilla/marketplace-template/commit/2465bc6517291d47418b3da90b3d845040db97f6
https://github.com/mozilla/marketplace-stats/pull/58
https://github.com/mozilla/zamboni/pull/2989
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•