Skip to content
This repository was archived by the owner on Aug 11, 2019. It is now read-only.
This repository was archived by the owner on Aug 11, 2019. It is now read-only.

Embedding the bundle.js and styles into html #11

@codri

Description

@codri

Hi,

By the looks of it, embedding the bundle.js(8.2KB), main.css(1.5KB) into the document(3.1KB) can easily fit into the 14KB sweet spot(12.8KB in total, maybe even better when gzipped together).

It could show one of the sveltejs main selling points, its compactness. The webfonts, of course, will slow down the things, but I think there are ways to progressively add webfonts to the page(maybe even without triggering a layout recalculation) while rendering initially without them.

One could also draw some dummy elements on the screen, then once the data comes from the server, it could add the text and images into places.

It's a crowded place these days for webframeworks so achieving 100 score on lighthouse could attract more people. Shaving off a few roundtrips on 2G on mobile could result in a higher score.

Resources about the 14KB TCP slow start window:

Link for the progressive web fonts loading(hacks of course):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions