Alexander Myshov
myshov.bsky.social
Alexander Myshov
@myshov.bsky.social
Software engineer from Siberia, member of MDN team. Excited by science, guitar and yoga

github.com/myshov

Stockholm, Sweden 📍
Hi Barry, thanks for the quick response! Sure I will post my findings 👍
April 27, 2025 at 9:12 PM
April 27, 2025 at 8:53 PM
April 27, 2025 at 8:49 PM
The final workaround that I came up with is to use combination of these two methods. `.decode()` for Firefox and Safari and `createImageBitmap` for Chrome. Here is the repo with more info and examples github.com/myshov/fastD... I hope it will help browser vendors to resolve problems
GitHub - myshov/fastDrawImage: Non-blocking example of drawImage on html5 canvas
Non-blocking example of drawImage on html5 canvas. Contribute to myshov/fastDrawImage development by creating an account on GitHub.
github.com
April 27, 2025 at 8:46 PM
One method that works for decoding in Chrome without blocking it is using `createImageBitmap()` with blob as an argument. But unfortunately it doesn’t work well in Firefox
April 27, 2025 at 8:46 PM
If you think that `image.decode()` should execute off main thread and it should help, you are right. But in Chrome drawImage alwaysh trigger additional decoding even for images that were decoded before
April 27, 2025 at 8:46 PM
Oh… 🙈
December 4, 2024 at 6:56 PM
Reposted by Alexander Myshov
A flag which bans TS features with runtime emit (enums, namespaces, experimental decorators, etc) will come in 5.8 to help people executing TS code via Node.js (or who want to avoid using those features for "reasons").
November 23, 2024 at 6:21 AM
Really cool demo! Probably this idea can also be applied to a text to create interesting wavy effect on hover
November 15, 2024 at 8:48 PM
But on serious note I have seen that people use api from twitter to extract text of the tweets on statically generated sites. It’s not perfect solution but it can solve the problem with removed tweets
November 15, 2024 at 7:00 PM
Screenshots will save the web
November 15, 2024 at 6:56 PM