Optimize ES6 Output Size & Performance

  • Let’s see how default arguments work.
  • let noop = () => {}; // 22 bytes minified ( 29 % more bytes)
  • function context ( ) { let { a, b, c, d } = this ; a(); b(); c(); d(); } // 76 bytes minified (36% more bytes)

Read the full article, click here.


@Hashnoder: “Optimising ES6 Output Size & Performance in ReactJS app –

#JavaScript #ReactJS”


Transpiled ES6 code can get sizeable, which doesn’t benefit limited bandwidth users, such as those using your mobile web site. Every byte matters, especial.


Optimize ES6 Output Size & Performance