tech/webdev magazine

October 17, 2024

How to convert CommonJS to ESM

Thursday, October 17, 2024 Teklinks

ECMAScript modules (”ESM”) are the official, modern way of writing and sharing JavaScript — it’s supported in many environments (e.g. browsers, the edge, and modern runtimes like Deno), and offers a better development experience (e.g. async loading and being able to export without globals).

Full article

October 16, 2024

Optimizing SPA load times with async chunks preloading

Wednesday, October 16, 2024 Teklinks

Hello hello! In this post, I’ll explain how to improve the performance of client-side rendered apps by avoiding the waterfall effect caused by route-based lazy-loading. We'll do this by injecting a custom script that preloads the chunks for the current route, ensuring they’re downloaded in parallel with the entry point chunk.

Full article

Google Chrome’s uBlock Origin phaseout has begun

Wednesday, October 16, 2024 Teklinks

Google Chrome has begun to phase out uBlock Origin. The developer of the free ad blocker, Raymond Hill, recently reposted a screenshot that shows Chrome automatically turning off uBlock Origin because it is “no longer supported.”

Full article

How Bun supports V8 APIs without using V8 (part 1)

Wednesday, October 16, 2024 Teklinks

When packages work in Node.js but don't work in Bun, we consider that a bug in Bun. Native C & C++ APIs are often used in the JavaScript ecosystem for performance-critical libraries like 2D Canvas, database drivers, CPU detection, and more. Bun and Node.

Full article

October 15, 2024

Liskov’s Gun: The parallel evolution of React and Web Components

Tuesday, October 15, 2024 Teklinks

Because this essay is over 11 000 words long(!) I’ve made a convenience EPUB file for offline reading. (EPUB only! No PDF this time.) You can download it over on the fulfilment service I use, Lemon Squeezy, with the option to pay what you want if you feel the urge to support my writing.

Full article