recentpopularlog in

loading

« earlier   
Deploying ES2015+ Code in Production Today — Philip Walton
Have two webpack targets, one for ES6+ browsers, another for ES5 browsers, and use
<script type="module" src="main.mjs"></script> to load the ES6 code, <script nomodule src="main.es5.js"></script> to load the older code

Avoiding transpilation makes code 2x smaller and 2x faster to parse.

More at https://news.ycombinator.com/item?id=15291286

https://twitter.com/philwalton/status/908082461799616512

creat-react-app hasn't implemented it:
https://github.com/facebook/create-react-app/pull/3136#issuecomment-436085607

More complicated alternative that somehow wasn't aware of this post:
https://www.smashingmagazine.com/2018/10/smart-bundling-legacy-code-browsers/
JavaScript  conditional  loading  ES6  browser  load  speed  performance 
10 days ago by dandv
UI Movement - The best UI design inspiration, every day
UI effects, free. Interesting page loading effects and loads of other components and layouts
webdesign  web  design  ux  ui  inspiration  code  loading  effects  page  animations 
11 days ago by piperh

Copy this bookmark:





to read