Re:Removing jQuery from GitHub.com frontend
by StavrosK on Wednesday July 25, 2018 @06:01PM
(#17613315)
How big is the compiled output?
[ Parent
| on HN ]
Re:Removing jQuery from GitHub.com frontend
by munchbunny on Wednesday July 25, 2018 @06:24PM
(#17613476)
In my experience (compiling TS + babel down to ES5), the compiled output is generally fine. Unless you're trying to squeeze every last kb out of it, asset optimization and NPM dependency bloat are much bigger optimization opportunities anyway.
Re:Removing jQuery from GitHub.com frontend
by thermodynthrway on Wednesday July 25, 2018 @06:41PM
(#17613579)
Haven't looked at Babel's, but the output from Typescript is human readable and not much bigger than the original. The more polyfills (lower your target lib aka ES3 vs ES2015) The bigger the output.
Even targeting the oldest crappiest browsers doesn't add that much. Some maybe 50kb for polyfills injected and code bloat of 30% ish. Not much price to pay to use the latest features without caring about compatibility