After bundling my very simple web app that uses a couple of JS modules, the total size of all code is over 1 MB.
A debug version of an Android app with the same amount of functionality is 48K.
Can we talk a bit about the download size of native apps again? #AndroidDev #PWA
-
-
Replying to @ErikHellman
That should not happen - tell us more cc/
@slightlylate1 reply 0 retweets 1 like -
Replying to @kennethrohde @slightlylate
Small project based on Polymer and LitElement. The project is created from polymer init (polymer-3-application). Nothing else imported. The bundled JS file is exactly 1 MB.
1 reply 0 retweets 0 likes -
-
I'll try to make a clean example I can share and post an issue later today.
1 reply 0 retweets 2 likes -
Thanks, looking forward to seeing it. This is an order of magnitude too big (or more)
1 reply 0 retweets 1 like -
Replying to @slightlylate @ErikHellman and
Did the usual: ``` %> polymer init polymer-3-application %> polymer build %> polymer serve ``` Sub 100KiB. Screenshot attached.pic.twitter.com/wnTsNm4o6c
1 reply 0 retweets 2 likes -
Yep. Got that as well. I tried recreating the app I'm working on that I base of Polymer Starter Kit and I got the my-app.js at 304KiB. I'm trying to figure out what is causing my "real" app to generate a 1MB file now. This is my test app:https://github.com/ErikHellman/PolymerTesting …
1 reply 0 retweets 0 likes -
Building it now.
1 reply 0 retweets 1 like -
Replying to @slightlylate @ErikHellman and
Ok, this is too big, but it's not 1MiB. Digging into the structure now.pic.twitter.com/M6xptrkDEI
2 replies 0 retweets 1 like
Ok, installed prpl-server, added `"autoBasePath": true,` to the polymer.json, rebuilt, and served with `prpl-server --root ./build/ --config polymer.json` ~75K to interactive, 2x that total for Service Worker caching of resources (not sure why not reused?)
-
-
Replying to @slightlylate @ErikHellman and
To be clear: zero code changes.
1 reply 0 retweets 1 like -
Thanks! There is obviously something weird on my side. Can't reproduce it on the standalone example. I'll keep digging and see if I can find what causes it.
1 reply 0 retweets 2 likes - 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.