Skip to main content
CSS-Tricks
Since 2007
  • Articles
  • Almanac
  • Guides
  • Links
  • Newsletter
  • Shop
  • Account icon-account
  • Search

Articles Tagged
javascript modules

5 Articles
{
,

}
architecture JavaScript javascript modules

A Well-Designed JavaScript Module System is Your First Architecture Decision

Behind every technology, there should be a guide for its use. While JavaScript modules make it easier to write “big” programs, if there are no principles or systems for using them, things could easily become difficult to maintain.
Image
By Amejimaobari Victor on Apr 16, 2026
import JavaScript javascript modules json

ECMAScript proposal: JSON modules

Dr. Axel Rauschmayer looks at JSON modules, which is already live in Chrome 91 (but nothing else). It looks just like an ES Modules-style import, only you asset the type at the end.

import configData from './config-data.json' assert {type: 
…
Image
By Chris Coyier on Jul 21, 2021
javascript modules

Life with ESM

ESM, meaning ES Modules, meaning JavaScript Modules. Like, import and friends.

Browsers support it these days. There is plenty of nuance, but as long as you’ve dropped IE, the door is fairly open.…

Image
By Chris Coyier on Jan 19, 2021
amp facebook javascript modules loader

Weekly Platform News: Text Spacing Bookmarklet, Top-Level Await, New AMP Loading Indicator

In this week’s roundup, a handy bookmarklet for inspecting typography, using await to tinker with how JavaScript modules import one another, plus Facebook’s in-app browser is only posing as one. Let’s get into the news!…

Image
By Šime Vidas on Sep 5, 2019
es6 javascript modules

ES6 module loading: More complicated than you think

Nicholas Zakas:

The differences between scripts and modules are subtle enough that it’s hard for developers to understand the restriction of declaring what a JavaScript file represents ahead of time. My hope is that this post clarifies some of the

…
Image
By Robin Rendle on Apr 8, 2016
CSS-Tricks star logo

Sponsor CSS-Tricks!

We've got lots of ways to help you connect with the greatest front-end community in all the land.

Image

CSS-Tricks Newsletter

Sign up to get front-end roundups, browser updates, and exclusive content sent to your inbox bi-weekly.

Ads are self-hosted

Ad Image

CSS-Tricks Members

Join our community of front-end nerds! You'll get into the Discord server and member-only perks and free swag.

Ad Image

CSS-Tricks Newsletter

Sign up to get front-end roundups, browser updates, and exclusive content sent to your inbox bi-weekly.

Ad Image

CSS-Tricks Store

Get your t-shirts, prints, stickers, and yes, even mousepads at the brand-spankin' new CSS-Tricks store, now open.

CSS-Tricks is powered by a small team of real-life humans.

Get Curated Front-End Roundups Right in Your Inbox

Coming back November 10! See past issues →

CSS-Tricks
  • Guest Writing
  • Memberships
  • CSS-Tricks Store
  • Support Us
  • Advertising
  • Contact Us
Social
  • RSS Feeds
  • Bluesky
  • Mastodon
  • CodePen
  • X / Twitter
  • LinkedIn
Legalese
  • CSS-Tricks License
  • AI Statement
  • Terms of Use
  • Privacy Policy
Back to Top
Advertisement
Advertisement