Page loading size is unreliable #3

Open
opened 2026-05-16 16:54:18 +02:00 by gribse · 2 comments
Owner

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 ?

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 ?
Author
Owner

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/

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/
Author
Owner

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

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
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gribse/blog-hugo#3
No description provided.