Note from 23 June 2021

I'm often ashamed to have to ask for help with JavaScript code, feeling like I'm not up to the task, like I'm an imposter with my few open source projects.

https://github.com/WebReflection/linkedom/issues/69#issuecomment-866797308

I shouldn't be.

But that's the way it is… 🤷‍♂️


  1. TIL IntersectionObserver's rootMargin only works if the observer is in the same origin, because of privacy concerns:

    There is a risk that the API may be used to probe for information about the geometry of the global viewport itself, which may be used to deduce the user’s hardware configuration.

    That's why this demo of a sticky navigation doesn't work in CodePen's default view… 😞

    https://codepen.io/nhoizey/pen/QWBrrKB