Any Svelte/Vite/Vanilla JS developers here who'd like to give me tips for my code? https://github.com/ronilaukkarinen/finnish-mastodon-users/blob/6d899cd72d8f48875ac557017a5dbdf2e77064fc/main.js

It's currently not performant and may even crash the browser. If the authorize/follow function is enabled, getting easily rate limited.

All tips appreciated. #Developers #WebDev #JS #JavaScript #VanillaJS #Svelte #Vite #GitHub #OpenSource #Performance #Coding #CodingTips #HelpWanted

finnish-mastodon-users/main.js at 6d899cd72d8f48875ac557017a5dbdf2e77064fc · ronilaukkarinen/finnish-mastodon-users

A list for Finnish Mastodon users. Contribute to ronilaukkarinen/finnish-mastodon-users development by creating an account on GitHub.

GitHub

@rolle - when you get into issues of bogging down the browser ... One of more interesting ways of dealing with it is to build a queue of stuff to process and work through it using window.requestAnimationFrame().

It's good for stuff beyond just animating canvas elements - I promise.

@renic Nice! I'll look into that soon.