Plus a powerful barcode generation library, Backbone is back, and the worst way to get 100s on Lighthouse. |
How to Annul Promises in JavaScript — You can 'cancel' XHR and fetch requests, but can you cancel regular promises? Currently, no, but Zachary looks into doing the next best thing: telling a promise the game's up, and discarding/ignoring its eventual results. Zachary Lee |
regex 2.1: Turn JavaScript's Regular Expression Support Up to Eleven — From the co-author of O’Reilly’s High Performance JavaScript and Regular Expressions Cookbook comes an enhancement for JavaScript’s regex support. Supporting all of ES2024’s regex functionality, it adds support for free spacing and comments, atomic groups, regex subroutines, context-aware interpolation of RegExp instances, and more. Steven Levithan |
💡 The author also tells us a Babel plugin for regex is expected to be released later today. |
IN BRIEF: Nicholas C. Zakas writes about different JavaScript runtimes and how you can preserve the ability to switch runtimes easily. The React Native team says developers building modern React Native apps should be using a framework to do so, such as Expo. Web pioneer Marc Andreessen tells ▶️ the origin story of Mosaic and Netscape. 🤦 If you can't get your Lighthouse scores to 100%, you could always pretend.. A trick to keep an eye out for.. There are at least 535 ways to reload a page with JavaScript. |
RELEASES: Backbone.js 1.6 – The classic library gets a little update. Qwik 1.6 – Qwik 2 is coming soon, though. A raft of Node.js Security Releases are due on July 8. ESLint 9.6, PrimeVue 4.0, Bun 1.1.18 |
Enhancing The New York Times' Web Performance with React 18 — Last year, The New York Times set out to take full advantage of React 18 on its flagship news site. This is a tour of the challenges faced in upgrading, coupled with the significant benefits they managed to take advantage of. Ilya Gurevich (NYT) |
How We Tamed Node.js Event Loop Lag — Node famously uses very few threads yet can handle a large number of clients performantly, as long as the work associated with each client is ‘small.’ When that work isn't 'small', as here, things can go off the rails quickly. Eric Allam |
A Set of Modern Web Performance Guides — A helpful collection of guides, covering things such as working with the different core web vitals, JavaScript optimization, metrics, and more. SpeedCurve |
BWIP-JS: A Barcode Writer in Pure JavaScript — A library that can generate barcodes using over 100 different barcode types and standards, both single and two dimensional. There is, of course, a live demo where you, too, can discover far more types of barcodes exist than you ever imagined. Mark Warren |
Hexo 7.3 – Popular Node.js blog framework / generator. gridstack.js 10.3 – Build responsive interactive dashboards quickly. React-PDF 9.1 – React component to display PDFs. MUI X 7.8 – Popular React component suite. |
Sliderland: A Minimalist Coding Playground — A slider control based visualization you can code with simple formulas. We last linked to this a few years ago, but it’s still a fun way to do some quick, visual JS math experimentation. Tixy.land is along similar lines, but based on a 2D grid. blinry | |