Introducing Mentoss: The fetch Mocker
A new approach to mocking global fetch() calls (in both browsers and server-side runtimes) inspired by previous attempts like Nock and MSW. - https://humanwhocodes.com/blog/2025/01/introducing-mentoss-fetch-mocker/
#javascript
A new approach to mocking global fetch() calls (in both browsers and server-side runtimes) inspired by previous attempts like Nock and MSW. - https://humanwhocodes.com/blog/2025/01/introducing-mentoss-fetch-mocker/
#javascript
Human Who Codes
Introducing Mentoss: The fetch mocker - Human Who Codes
A new approach to mocking global fetch() calls that works in both browsers and server-side runtimes.
👍1
There Are a Lot of Ways to Break Up Long Tasks in JavaScript
Due to how browsers and the event loop work, letting a single task hog the main thread is a quick way to freeze up your site’s UI. Alex explains the problem and uses a simple example to walk through the pros and cons of different solutions from basic use of setTimeout() to requestAnimationFrame(), channel messaging, and Web Workers. - https://macarthur.me/posts/long-tasks/
#javascript
Due to how browsers and the event loop work, letting a single task hog the main thread is a quick way to freeze up your site’s UI. Alex explains the problem and uses a simple example to walk through the pros and cons of different solutions from basic use of setTimeout() to requestAnimationFrame(), channel messaging, and Web Workers. - https://macarthur.me/posts/long-tasks/
#javascript
Alex MacArthur
There are a lot of ways to break up long tasks in JavaScript.
It's very common to intentionally break up long, expensive tasks over multiple ticks of the event loop. But there are sure are a lot of approaches to choose from. Let's explore them.
👍2❤1
Deeply Understand Currying in 7 Minutes - https://www.yazeedb.com/posts/deeply-understand-currying-in-7-minutes
#javascript
#javascript
👍1
A Report on How the Web is Really Using JavaScript
Each year, the HTTP Archive puts together the Web Almanac, a report on the ‘state of the Web’. The JavaScript section has just gone live and goes into depth on how much JS we’re using (or failing to use!), the popularity of TypeScript, loading methods, Web Worker use, and, yes, jQuery still leads the way! - https://almanac.httparchive.org/en/2024/javascript
#javascript
Each year, the HTTP Archive puts together the Web Almanac, a report on the ‘state of the Web’. The JavaScript section has just gone live and goes into depth on how much JS we’re using (or failing to use!), the popularity of TypeScript, loading methods, Web Worker use, and, yes, jQuery still leads the way! - https://almanac.httparchive.org/en/2024/javascript
#javascript
almanac.httparchive.org
JavaScript | 2024 | The Web Almanac by HTTP Archive
JavaScript chapter of the 2024 Web Almanac covering the usage of JavaScript on the web, libraries and frameworks, compression, web components, and source maps.
👍2
How ECMAScript Engines Optimize Your Variables
From the authors of the Boa JS Rust-powered JavaScript engine. - https://boajs.dev/blog/2025/03/05/local-variables
#javascript
From the authors of the Boa JS Rust-powered JavaScript engine. - https://boajs.dev/blog/2025/03/05/local-variables
#javascript
boajs.dev
How ECMAScript Engines Optimize Your Variables | Boa JS
In this post, we will dive into how ECMAScript engines store variables,
👍3
Lazy Load Background Images with the IntersectionObserver API - https://www.debugbear.com/blog/lazy-load-background-images-intersection-observer
#javascript
#javascript
Debugbear
Lazy Load Background Images with the IntersectionObserver API | DebugBear
The IntersectionObserver API is a performance-friendly browser API that allows you to lazy load background images asynchronously, outside of the main thread. This tutorial looks into how to implement it using HTML, CSS, and JavaScript.
👍2
Variable Naming Best Practices in JavaScript
12 variable naming conventions and best practices in… - https://javascript.plainenglish.io/variable-naming-best-practices-in-javascript-94af115f42cd
#javascript
12 variable naming conventions and best practices in… - https://javascript.plainenglish.io/variable-naming-best-practices-in-javascript-94af115f42cd
#javascript
Medium
Variable Naming Best Practices in JavaScript
12 variable naming conventions and best practices in JavaScript.
👍2❤1
Ecma International Approves ECMAScript 2025: What’s New?
The Ecma General Assembly has approved the ES2025 language specification, which you can read in full here, or you can enjoy Dr. Axel’s more succinct explainer instead. - https://2ality.com/2025/06/ecmascript-2025.html
#javascript
The Ecma General Assembly has approved the ES2025 language specification, which you can read in full here, or you can enjoy Dr. Axel’s more succinct explainer instead. - https://2ality.com/2025/06/ecmascript-2025.html
#javascript
2Ality
Ecma International approves ECMAScript 2025: What’s new?
On 25 June 2025, the 129th Ecma General Assembly approved the ECMAScript 2025 language specification (press release, GitHub release), which means that it’s officially a standard now. This blog post explains what’s new.
👍4❤2
The Many, Many, Many JavaScript Runtimes of the Last Decade
A meaty article (which took a year to put together) covering the myriad of JavaScript runtimes and engines both past and present, from obvious picks like Node.js to cloud platforms and lesser known ‘honorable mentions’. This is a great summary to round out your JS ecosystem knowledge. - https://buttondown.com/whatever_jamie/archive/the-many-many-many-javascript-runtimes-of-the-last-decade/
#javascript
A meaty article (which took a year to put together) covering the myriad of JavaScript runtimes and engines both past and present, from obvious picks like Node.js to cloud platforms and lesser known ‘honorable mentions’. This is a great summary to round out your JS ecosystem knowledge. - https://buttondown.com/whatever_jamie/archive/the-many-many-many-javascript-runtimes-of-the-last-decade/
#javascript
Buttondown
The many, many, many JavaScript runtimes of the last decade
This last decade has seen an inundation of new JavaScript runtimes (and engines in equal measure), enabling us to run JavaScript in all manner of contexts...
👍1
Writing a Tiny Undo/Redo Stack in JavaScript
You might prefer to lean upon an established approach (using Immer patches perhaps), but if you want to implement something small yourself, this might help. - https://blog.julik.nl/2025/03/a-tiny-undo-stack
#javascript
You might prefer to lean upon an established approach (using Immer patches perhaps), but if you want to implement something small yourself, this might help. - https://blog.julik.nl/2025/03/a-tiny-undo-stack
#javascript
Julik Tarkhanov
UI algorithms: a tiny undo stack
I’ve needed this before - a couple of times. Third time I figured I needed something small, nimble - yet complete. And - at the same time - wondering about how to do it in a very simple manner. I think it worked out great, so let’s dig in. Most UIs will have…
👍1
When to Use map() vs. forEach() - https://allthingssmitty.com/2025/04/21/when-to-use-map-vs-foreach/
#javascript
#javascript
Allthingssmitty
When to use map() vs. forEach() - Matt Smith
Learn the key differences between map() and forEach() methods in JavaScript, when to use each, and why map() is often the better choice for transforming data and writing cleaner, more functional code.
❤2
Building an Offline-Friendly Image Upload System
How to leverage PWA tech such as IndexedDB, service workers, and the Background Sync API to help improve the reliability of web apps for users, particularly those with unreliable internet connectivity. - https://www.smashingmagazine.com/2025/04/building-offline-friendly-image-upload-system/
#javascript
How to leverage PWA tech such as IndexedDB, service workers, and the Background Sync API to help improve the reliability of web apps for users, particularly those with unreliable internet connectivity. - https://www.smashingmagazine.com/2025/04/building-offline-friendly-image-upload-system/
#javascript
Smashing Magazine
Building An Offline-Friendly Image Upload System — Smashing Magazine
Poor internet connectivity doesn’t have to mean poor UX. With PWA technologies like `IndexedDB`, service workers, and the Background Sync API, you can build an offline-friendly image upload system that queues uploads and retries them automatically — so your…
👍1