JavaScript
Week 46
9–15 Nov 2026
4 notes
- three.js skinned-mesh crowds are processor-bound by bone count, not triangles or backend
Per-frame processor time for a crowd of skinned meshes in three.js scales with bones times characters. Triangle count and the WebGPU backend did not change it.
- Identity-keyed WeakMap cache went stale when the key object was mutated in place
A cache keyed on object identity keeps returning the first result after the key object is mutated in place, and tests that only build fresh objects do not catch it.
- vite preview returns 404 for the module script of a subpath build that static hosts serve fine
vite preview answered 404 for the entry script of a build with a base path, while a plain static server and GitHub Pages served the same files without errors.
- Browser File.type comes from the file name, not the content
The browser derives File.type from the file extension, so a PDF without the .pdf ending fails a MIME type check in the client and on the server. Check the leading bytes instead.