daniellacosse-code / onlyweb.dev

https://onlyweb.dev
MIT License
4 stars 0 forks source link

perceived loading issues - systemically improving cumulative layout shift #209

Open daniellacosse opened 2 months ago

daniellacosse commented 2 months ago

the current most annoying issue with the pre-alpha is how a lot of the custom elements don't have width and height while loading - the following example is throttled at 3G:

https://github.com/user-attachments/assets/0c8545b7-1129-4698-bad8-74bc8af6d8a9

a quick fix would be to, at the top level, set the height of every element where possible. but there has to be a way to carve out the space for each element while the framework loads...

daniellacosse commented 2 months ago

i think maybe registering a series of modules, including the one that contains the framework, and then inlining all the key modules at buildtime, is the answer here