Skip to content

Instantly share code, notes, and snippets.

@jakub-g
Last active July 15, 2019 11:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakub-g/ff878fb3a1a44b6fb8b9b28b5ad7e74b to your computer and use it in GitHub Desktop.
Save jakub-g/ff878fb3a1a44b6fb8b9b28b5ad7e74b to your computer and use it in GitHub Desktop.
Differential serving (module nomodule)

Rationale for serving ES6

  • Write ES6 without transpilation (perf reasons aside; developer convenience)
  • Perf reasons (untranspiled code is smaller and faster)

Expectations vs reality

┓┏┓┏┓┃
┛┗┛┗┛┃\○/
┓┏┓┏┓┃ /
┛┗┛┗┛┃ノ)
┓┏┓┏┓┃
┛┗┛┗┛┃
┓┏┓┏┓┃
┛┗┛┗┛┃
┓┏┓┏┓┃
┃┃┃┃┃┃
┻┻┻┻┻┻

https://gist.github.com/jakub-g/5fc11af85a061ca29cc84892f1059fec

ES6 status in the browsers

  • Chrome = rock solid
  • Firefox = solid, but without modulepreload
  • Safari = double fetches in some cases
  • Edge = triple fetches
  • IE = double fetches
@plesiecki
Copy link

Expectations vs reality 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment