coding javascript nuxt Mar 7, 2024 4 min read
NUXT: Accessing DOM in a composable
Accessing the DOM inside of a composable is easy as long as you know you have access to lifecycle hooks.
My rambling opinions specifically about javascript .
Accessing the DOM inside of a composable is easy as long as you know you have access to lifecycle hooks.
While learning Nuxt3 I ran into, and resolved, an issue. Here's how to make sure the prerendering engine waits for your async content.
I needed to know if a YouTube video was region locked... so I went down the rabbit hole and learned how to use the YouTube Data API.
Finding out if an element is within the viewport has always been a pain in the butt. Luckily, there's a handy new API called Intersection Observer.
Detecting a slow network should be simple, right? Or...at least it sounds simple. Reality is cruel though, because it's really a pain in the ass.