v6.7.3: faster loading, and pages search engines can read
The bundles carried all thirteen translations at once and a page fetched them a third time as raw source; each page now loads only its own language. Alongside that: JavaScript is minified, the eight stylesheets are served as one file, the QR scanner is fetched after the app is up instead of on every visit, Inter ships once rather than five copies of the same file, and Font Awesome is subset to the 82 icons this app draws instead of all 2468. 1.85 MB across 43 requests becomes under 700 KB across 33. On mobile the page starts drawing in 1.6 s instead of 6.3 s and is usable in 4.5 s instead of 11 s. Pages also carry their text in the HTML now. Everything was drawn by JavaScript into an empty div, so crawlers saw correct metadata around nothing, and twelve of the thirteen language pages had never been shown to anyone. The documentation is published under /docs/ with a new FAQ, and unknown addresses return a real 404. Separately: the localized shells were served with the year-long immutable cache header meant for static assets, which pinned anyone who opened /de/ or /ru/ to that build. The header is fixed and the service worker refreshes what it cached. Claude-Session: https://claude.ai/code/session_014KjzTXxrhzYoDDWChYQ4u2
This commit is contained in:
@@ -38,7 +38,11 @@ const BecomePartner = () => {
|
||||
{
|
||||
id: 'furi',
|
||||
name: 'FuriLabs',
|
||||
logo: '/logo/furi.png',
|
||||
// Renamed on resize rather than replaced: the file carries no ?v= stamp and is
|
||||
// served immutable for a year, so Cloudflare and every browser that had already
|
||||
// seen it kept handing back the old 164 KB original. A new path is the only
|
||||
// thing that reliably busts a cache entry that has no version in its URL.
|
||||
logo: '/logo/furi-160.png',
|
||||
logoHeight: '54px',
|
||||
url: 'https://furilabs.com/',
|
||||
desc: t('partners.furilabs.desc'),
|
||||
@@ -78,6 +82,11 @@ const BecomePartner = () => {
|
||||
React.createElement('div', { key: 'logo', style: { display: 'flex', alignItems: 'center', marginBottom: '30px', height: '54px' } },
|
||||
React.createElement('img', {
|
||||
src: p.logo, alt: p.name,
|
||||
// The partner strip sits well below the fold, so these are never part of
|
||||
// the first screen — but they were being fetched as though they were.
|
||||
// furi.png in particular arrived at 500×500 and 164 KB to be drawn 54px
|
||||
// tall, which Lighthouse counted as the largest single waste on the page.
|
||||
loading: 'lazy', decoding: 'async',
|
||||
style: { height: p.logoHeight, width: 'auto', maxWidth: '190px', objectFit: 'contain', display: 'block' }
|
||||
})
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user