Skip to content

Comment on Bootstrap 5.2 Is Out

Comments

I'm very excited to see this, specifically the Scrollspy refactor [0]. During COVID lockdown, without anything better to do, I went down a rabbit hole debugging some wonky scroll behavior. A bunch of other people had encountered the same issue over the years, but it never was a top priority.

I did some research and discovered the Intersection Observer API, which seemed like a perfect fit for this use case. I hacked up a basic implementation[1], asked for some feedback, and promptly forgot about it. I was super stoked to see someone else pick up the idea and run with it, doing a much better job than I could have. Open source is fun!

[0] https://github.com/twbs/bootstrap/pull/33421

[1] https://github.com/twbs/bootstrap/pull/33015

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.