Page loading size is unreliable #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
it represents the data loaded for that page, not the size of the content of the page (depending on cached media, etc.
a script that measures actual size of the page would be better.
maybe run it at build ?
I am using a script from Zuma to calculate page dl size at load.
This is javascrit which cuold be omitted, and depênds on cached media of the user's browser.
By baking the size in each page before publication it would be even lighter and repeatable.
https://github.com/chbricout/hugo-sizer/
move this to merl1-cms tool, and figure out the size at build.
the script generates a list of filesizes for each webpage and stores it in a file (csv ?)
then at build, it gets the data from the file and puts it in he footer, for each page.
to be elegant, the size calculator would only run on updated pages, aka pages whose content folder has a change on git, since the last time this calculation ran