![]() |
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 Alex MacArthur |
๐ Articles & Tutorials |
![]() |
How to Publish ESM-Based npm Packages with TypeScript โ Now that you can use the ES modules (almost) everywhere, itโs worth understanding how to package them up for use with npm. Axel digs into everything you need to know and shares some useful tools too. Dr. Axel Rauschmayer |
Vite with TypeScript โ If youโve created a JavaScript-based React project with Vite and want to get on the TypeScript train, here are the basic steps. Robin Wieruch |
๐ Code & Tools |
RE2JS 1.0: Linear Time Matching for Regular Expressions โ RE2 is a regular expression engine built by Google designed to operate in time proportional to the size of the input, in order to avoid so-called โReDoSโ problems caused by backtracking, and this brings such protection to the browser too. Oleksii Vasyliev |
|
๐ต A quick musical number.. |
![]() |
A Protracker Module Player in Pure JavaScript โ Iโm a sucker for 90s tracker music, JavaScript experiments, and cool Web experiences, and this has all three. If youโre not familiar with tracker music, itโs a way to write music on a grid which triggers the playing of samples. This code manages to parse and play a Protracker file in pure JavaScript. (Note: The image above is of the original Protracker app, this experiment is more minimal and about the code.) srtuss |
![](https://www.javascripttutorial.org/wp-content/uploads/2021/08/react_development_tools-banner.png)