Menu

JavaScript News

Thinking About Power Usage and Websites

September 21st, 2020

Gerry McGovern asked if I had any insight into energy consumption and websites. He has a book, after all, about the digital costs on the planet. He was wondering about the specifics of web tech, like… <blockquote\>If you do this in HTML it will consume 3× energy but if you do it in JavaScript it…

Pre-Caching Image with React Suspense

September 21st, 2020

Suspense is an exciting, upcoming feature of React that will enable developers to easily allow their components to delay rendering until they’re “ready,” leading to much smoother user experience. “Ready,” in this context, can mean a number of things. For example, your data loading utility can tie into Suspense, allowing for consistent loading states to…

Vue 3

September 18th, 2020

It’s out! Congrats to the Vue team for getting it done, I know it was a massive effort and a long time coming. All new docs, as well. I like it’s still a priority that Vue can be used with just a <script> tag with no build process at all. But it’s ready for build…

Angular Thoughts on Docs

September 18th, 2020

Photo by Patrick Tomasso on Unsplash If you have visited the docs at angular.io lately, you might have noticed some changes in our content layout and structure. As the lead technical writer for Angular, I thought I’d take a moment to cover some of the main goals we have for making the Angular documentation experience the…

Enforcing performance budgets with webpack

September 18th, 2020

As you probably know, a single monolithic JavaScript bundle — once a best practice — is no longer the way to go for modern web applications. Research has shown that larger bundles increase memory usage and CPU costs, especially on mid-range and low-end mobile devices. webpack has a lot of features to help you achieve…

Virtual Event Registrations with Wufoo Forms

September 15th, 2020

We’ve seen many events shift from in-person to online this year. That may have required a huge change to how you collect attendee registrations in the past, but with a paid Wufoo account and Zoom — along with a sprinkle of Zapier — it’s easier than ever to go virtual. First, set up a Zoom…

Angular localization with Ivy

September 9th, 2020

Part of the new Angular rendering engine, Ivy, includes a new approach to localizing applications — specifically extracting and translating text. This article explains the benefits and some of the implementation of this new approach. Prior to Ivy, the only way to add localizable messages to an Angular application was to mark them in component templates using…

One Action, Multiple Terminal Windows Running Stuff

September 8th, 2020

Many development environments require running things in a terminal window. npm run start, or whatever. I know my biggest project requires me to be running a big fancy Docker-based thing in one terminal, Ruby on Rails in another, and webpack in another. I’ve worked on other projects that require multiple terminal windows as well, and…

September 2020 Security Releases NodeJS

September 8th, 2020

Summary The Node.js project will release new versions of all supported release lines on or shortly after Tuesday, September 15, 2020. These releases will fix One critical severity issue One high severity issue One medium severity issue Impact The 14.x release line of Node.js is vulnerable to one critical severity issue, one high severity issue,…

Import Non-ESM libraries in ES Modules, with Client-Side Vanilla JS

September 7th, 2020

We’re living through a weird era where there are tons of JavaScript libraries that were meant to be used as <script> tags that expose available globals. AND there are tons of JavaScript libraries that are meant to be used through module loaders. AND there are tons of JavaScript libraries that assume you will use them…