Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Peter Kröner
Peter Kröner
@sir_pepe@mastodon.social  ·  activity timestamp 2 days ago

📢 PSA: Scripts are out, modules are in. If you are still using scripts, you're probably doing it wrong.

Modules are MUCH more than just syntax for import/export. They execute #JavaScript completely differently and BETTER than scripts—better scoping rules, instant strict mode, a neat dependency resolution algorithm… everything you can think of is better served by a module than by a script.

#webdev

A large table that shows the many ways in which scripts suck and modules rule. Includes modules not blocking the HTML parser, having better scoping rules, having strict mode, supporting top-level "await" AND "using", and much more.
A large table that shows the many ways in which scripts suck and modules rule. Includes modules not blocking the HTML parser, having better scoping rules, having strict mode, supporting top-level "await" AND "using", and much more.
A large table that shows the many ways in which scripts suck and modules rule. Includes modules not blocking the HTML parser, having better scoping rules, having strict mode, supporting top-level "await" AND "using", and much more.
  • Copy link
  • Flag this post
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct