Profile avatar
puruvj.dev
compressionist, performance freak. @sveltejs team. 9 years experience. Thrice Conference Speaker ex-@stackblitz. ❤️🎸 Hans Zimmer. CodeFu: https://github.com/puruvj
328 posts 1,536 followers 417 following
Regular Contributor
Active Commenter
comment in response to post
😁🙏
comment in response to post
Great read, will revisit this once firefox ships VTs! 🙏
comment in response to post
Hmm if that was the case Astro docs would say that. Which means majority of users will go with ClientRouter only. I want my library to work robustly across all frameworks so would rather focus my efforts there
comment in response to post
Good writeup!
comment in response to post
docs.astro.build/en/guides/vi...
comment in response to post
They literally have a write up on how it works which says body is swapped. Which I couldn’t pick up thanks to getting spoiled by gpt and others😅
comment in response to post
In Astro, when you use Client Router and navigate from one page to another, the body gets completely replaced. This includes all the event listeners are removed too. Meaning draggables after navigation wouldn’t work Replaced with document.documentElement and works like a charm now
comment in response to post
Flickering is very little only once in a while, super rare
comment in response to post
Unfortunately it was my bad in this case 😅 bsky.app/profile/puru...
comment in response to post
Thanks to dominikg for help!
comment in response to post
Thanks to some investigations, I have almost solved this problem now. I had set it to 165 all time. Reason was that auto has some weird random flickering. But IG thats fine compared to poor perf
comment in response to post
Yes, I am planning that next weekend. Much faster than writing the 12k lines myself 😁
comment in response to post
Sonnet 4
comment in response to post
Haha thanks!! I had a lot of fun going deep into preact internals
comment in response to post
I don’t. True way would be to make an AST, walk through it and flag true or false. This is a good approximation that will get you there 90%
comment in response to post
Featurewise its actually complete! Gonna start releasing the beta versions soon, after svelte summit!
comment in response to post
Here you go! gist.github.com/PuruVJ/ed0ab...
comment in response to post
Oh nice!! We have that in Hindi too haha
comment in response to post
Haha I don’t know that many names myself, just know lakh, crore, Arab, kharab. The word Arab comes from actual Arab traders who would come to India, long ago who used to be so rich an entire numbering category was named after them
comment in response to post
Hahahaha let me know an interesting one that you find!
comment in response to post
1.4B people use this en.m.wikipedia.org/wiki/Indian_...
comment in response to post
Nah wildly differeny
comment in response to post
Oh wow I like this quite a bit! Thanks for sharing this!
comment in response to post
Whoa! Code?
comment in response to post
Sent you a DM
comment in response to post
🙏🙏
comment in response to post
Thank you!!🙏