a base hello world app in virtual-app is 40kb minified; that's not too bad. Would be cool to get down to even less.
-
-
Replying to @yoshuawuyts
unminified virtual-app is 89kb: 28kb node shims, 35kb virtual-dom, 3.2kb virtual-app and 1kb application code.. and a few extra pkgs
2 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
so prime targets for removal would be: stripping `assert` -= 10kb, and trimming down virtual-dom; everything else is probably moot
1 reply 0 retweets 1 like -
Replying to @yoshuawuyts
also worth noting: `sheet-router` comes in at a whopping 1.5kb unminified; no reason not to use it I reckon https://github.com/yoshuawuyts/sheet-router …
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
boom, added `-g unassertify` to the mix and stripped 28kb, down to 64kb / 30kb minified. Only .6kb app code https://github.com/twada/unassertify …
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
For the minified bundle: 15kb is virtual-dom, 5kb is hyperx; the other 10kb are tiny packages; it's looking pretty great hey
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
hyperx could be run as a browserify transform stripping another 5kb; 25kb for an app that has a better jsx, react, redux and react-router
1 reply 0 retweets 1 like -
Replying to @yoshuawuyts
Woah, if you run virtual-app through gzip too you end up with a whopping 11kb being sent over the wire. Ho-ly-shit.
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
Raw code for today's virtual-app stuff is available here; still wip as sheetify.next isn't done quite yet https://github.com/yoshuawuyts/playground-virtual-app …
2 replies 2 retweets 3 likes
virtual-app demo now has href capture, functional templates and history navigation at barely any kb / ~70LoC https://github.com/yoshuawuyts/playground-virtual-app/blob/master/index.js …
-
-
Replying to @yoshuawuyts
added a whole bunch of conditional templates; haven't felt as productive writing clientside stuff since I quit react https://github.com/yoshuawuyts/playground-virtual-app/blob/master/index.js …
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.