Created by: pconerly
I have a long landing page that has a lot of images, and occasionally the images load after scrollspy's offset has been generated. The result is that the offset array generated is wrong and it will highlight the wrong images.
Looking at the code in scrollspy.js
, there is no detection for a change in document height.
So here's the fix!