Using Transformers.js for AI in the Browser
Transformers.js is a seriously impressive project we link from time to time that lets you run pretrained machine learning models in the browser. Here’s a practical look at actually playing with it yourself right now. - https://www.raymondcamden.com/2024/12/03/using-transformersjs-for-ai-in-the-browser
#javascript
Transformers.js is a seriously impressive project we link from time to time that lets you run pretrained machine learning models in the browser. Here’s a practical look at actually playing with it yourself right now. - https://www.raymondcamden.com/2024/12/03/using-transformersjs-for-ai-in-the-browser
#javascript
Raymondcamden
Using Transformers.js for AI in the Browser
A look at Transformers.js and doing GenAI work in the browser.
👍3❤2
Working with JavaScript's Scheduler API
A look at an API only available in Chromium/Edge for now, but that promises a way to prioritize and control task execution in a more refined way than was possible till now. - https://www.trevorlasn.com/blog/javascript-scheduler-api
#javascript
A look at an API only available in Chromium/Edge for now, but that promises a way to prioritize and control task execution in a more refined way than was possible till now. - https://www.trevorlasn.com/blog/javascript-scheduler-api
#javascript
trevorlasn.com
Working with JavaScript's Scheduler API
Learn how to prioritize and control task execution in JavaScript using the new Scheduler API for better performance and user experience
👍5
9 Must-Know Advanced Uses of Promises - https://blog.stackademic.com/9-must-know-advanced-uses-of-promises-a6d1ab195dfc
#javascript
#javascript
Medium
9 Must-Know Advanced Uses of Promises
Overview
👍3
JavaScript Temporal is Coming
We first mentioned the Temporal API proposal providing a better way to handle dates and times in JavaScript almost five years ago (in issue 496!) but now it really is almost here. Brian explains its basic concepts and where initial support is starting to appear. - https://developer.mozilla.org/en-US/blog/javascript-temporal-is-coming/
#javascript
We first mentioned the Temporal API proposal providing a better way to handle dates and times in JavaScript almost five years ago (in issue 496!) but now it really is almost here. Brian explains its basic concepts and where initial support is starting to appear. - https://developer.mozilla.org/en-US/blog/javascript-temporal-is-coming/
#javascript
MDN Web Docs
JavaScript Temporal is coming | MDN Blog
A new way to handle dates and times is being added to JavaScript. Let's take a look at Temporal, what problems it solves, the current state, and what you'll find in the new documentation about it on MDN.
👍5❤1
Converting Values to Strings in JavaScript
When Dr. Axel says “converting values to strings in JavaScript is more complicated than it might seem”, I’m going to believe him. An interesting poke around into something simple that you might not think about very much. - https://2ality.com/2025/04/stringification-javascript.html
#javascript
When Dr. Axel says “converting values to strings in JavaScript is more complicated than it might seem”, I’m going to believe him. An interesting poke around into something simple that you might not think about very much. - https://2ality.com/2025/04/stringification-javascript.html
#javascript
2Ality
Converting values to strings in JavaScript has pitfalls
Converting values to strings in JavaScript is more complicated than it might seem: Most approaches have values they can’t handle. We don’t always see all of the data.
❤1👍1
Standard Schema: A Common Interface to Schema / Validation Libraries
From the creators of Zod, Valibot and ArkType comes a fantastic bit of collaboration to define a common interface to use JavaScript and TypeScript schema libraries. - https://standardschema.dev/
#javascript
From the creators of Zod, Valibot and ArkType comes a fantastic bit of collaboration to define a common interface to use JavaScript and TypeScript schema libraries. - https://standardschema.dev/
#javascript
Standard Schema
A common interface for TypeScript validation libraries
❤2👍1
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