The new IntersectionObserver landed in Chromium about a week ago. I find it pretty awesome and wanted to do a quick run down on it. This new API eliminates a lot of the headaches where you would have to do things like poll the page to determine when a element is visible. For example, I have a tab that is not selected and it contains some widget that needs to size itself. I hacked around it like th
![JavaScript’s new IntersectionObserver](https://cdn-ak-scissors.b.st-hatena.com/image/square/7fcbd4c0b154fa6a62a9917b3c8808101143efac/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A570%2F1%2AVCoXl_QdqdyANUyIIyQkiQ.png)