How to load a lazy loaded turbo frame a bit before it scrolls into view

A quick tip that you might find useful if you want to improve loading of a lazy loaded turbo frame.

If you would prefer if the user didn’t see the loading most of the time you can start loading it a bit before it scrolls into view so it’s already loaded when the user gets there: How to load a lazy loaded turbo frame a bit before it scrolls into view.