Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - JavaScript
Calendar · NOV 2026
‹ Nov 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Favorites (0)

News stream

News

Making a static file tool site work offline with a service worker

A static website doesn't have to stop working when the internet connection disappears. I wanted PocketPDF to keep working after its first load, including when someone opens it somewhere with no connection. That meant building an offline strategy…

devto-javascript

Retrying an image API on 429: backoff, jitter and credits

On a 429, wait for the number of seconds in the Retry-After header plus a little random jitter, then send the same request again with the same Idempotency-Key. Against a mock of the Blinkimg API's limiter, that policy created 120 jobs in 144…

devto-javascript

How I coded chess rules in JavaScript for a free multiplayer browser game

When I added chess to mympgames.com, I did not want a pretty board that quietly accepts illegal moves. Two people in a room, maybe on slow connections, need the same rules. So I wrote a small, pure rules module and put the server in charge of what…

devto-javascript

The Answer Checker Explains the Missing Question

Our practice page grades answers with one line: parse($('#practice-answer').value).eq(answer) If answer is undefined, that line throws. Not "marks it wrong" — throws, Cannot read properties of undefined (reading 'n'). That one line is why our…

devto-javascript

PNG vs JPEG for PDF pages: the chart page agreed, the text page didn't

"Save text as PNG, it's smaller than JPEG" is a rule of thumb for storing PDF pages as images, whether that's lecture slides for revision notes or a paper's figures. On a three-page sample, it held for the chart page only. That page, with flat…

devto-javascript

Lossless WebP was a fifth the size of PNG on a rendered PDF text page

If a pipeline of yours turns PDF pages into images and saves them as PNG because "it's lossless and text compresses well", lossless WebP deserves one test run before that default gets locked in. On one self-made sample rendered at 216 DPI, the text…

devto-javascript

ElevenLabs + React: Building a Voice-Enabled UI

Introduction Building a voice‑enabled interface has moved from a niche research area to a mainstream UX strategy. Whether you’re adding a virtual assistant to a dashboard, creating an interactive e‑learning platform, or simply experimenting with…

devto-javascript

1997 items available