avatar
mb21 @mb21.bsky.social

does it break if you use it twice on the same page?

aug 28, 2025, 3:09 pm • 0 0

Replies

avatar
Chloe @ PFR @chloe.pfr.wtf

It can, but in subtle ways. If you’re targeting an ID’d element in JS, it could only apply to the first, the last, or none. What if the element you’re targeting is an anchored landmark for a table of contents? Scroll linking could execute inconsistently or not at all. But rendering will be fine.

aug 28, 2025, 4:03 pm • 1 0 • view