spierce7
07/13/2023, 4:11 PMDavid Herman
07/13/2023, 4:18 PMDavid Herman
07/13/2023, 4:18 PMDavid Herman
07/13/2023, 4:23 PMDavid Herman
07/13/2023, 4:24 PMDavid Herman
07/13/2023, 4:25 PMspierce7
07/13/2023, 6:19 PMDavid Herman
07/13/2023, 6:20 PMspierce7
07/13/2023, 6:20 PMDavid Herman
07/13/2023, 6:20 PMspierce7
07/13/2023, 6:20 PMspierce7
07/13/2023, 6:21 PMDavid Herman
07/13/2023, 6:21 PMspierce7
07/13/2023, 6:21 PMspierce7
07/13/2023, 6:21 PMDavid Herman
07/13/2023, 6:22 PMDavid Herman
07/13/2023, 7:15 PM$ kobweb create app/empty
... accept all default answers ...
$ cd empty/site
$ kobweb export --layout static
The empty app template is basically a minimal skeleton that just imports dependencies and has a stubbed root index page.
When you do a static layout export, Kobweb takes a snapshot of each page in your app, which we can use to see how large the style section is.
So, I opened empty/site/.kobweb/site/index.html
inside IJ and highlighted the <style> sections, and it says that that's 10721 characters. So, roughly 1 byte per character, you can estimate that 11K of the download size is probably attributed to styles.
The full JS output for the empty site, after dead code elimination? 417K. So 2-3% of your JS output is styles.David Herman
07/13/2023, 7:15 PMDavid Herman
07/13/2023, 7:16 PMspierce7
07/13/2023, 7:16 PMspierce7
07/13/2023, 7:16 PMspierce7
07/13/2023, 7:16 PMspierce7
07/13/2023, 7:16 PMspierce7
07/13/2023, 7:17 PMDavid Herman
07/13/2023, 7:17 PMspierce7
07/13/2023, 7:17 PMDavid Herman
07/13/2023, 7:18 PMspierce7
07/13/2023, 7:18 PMDavid Herman
07/13/2023, 7:18 PMspierce7
07/13/2023, 7:18 PMDavid Herman
07/13/2023, 7:18 PMspierce7
07/13/2023, 7:18 PMDavid Herman
07/13/2023, 7:19 PMDavid Herman
07/13/2023, 7:19 PMDavid Herman
07/13/2023, 7:19 PMspierce7
07/13/2023, 7:19 PMDavid Herman
07/13/2023, 7:19 PMDavid Herman
07/13/2023, 7:20 PMspierce7
07/13/2023, 7:20 PMDavid Herman
07/13/2023, 7:20 PMDavid Herman
07/13/2023, 7:21 PMspierce7
07/13/2023, 7:21 PMspierce7
07/13/2023, 7:22 PMDavid Herman
07/13/2023, 7:23 PMDavid Herman
07/13/2023, 7:24 PMspierce7
07/13/2023, 7:27 PMDavid Herman
07/13/2023, 7:27 PMDavid Herman
07/13/2023, 7:27 PMDavid Herman
07/13/2023, 7:27 PMspierce7
07/13/2023, 7:28 PM