Hello,
The code doesn’t work but it has changed the loading. Instead of loading first and then moving downward quickly as the grid loads—it now loads first, blinks off then on, moves downward as the grid loads. OR it loads, turns off and the grid loads. It varies between those two. I don’t know why there’s a discrepancy.
I cleared all my caches (in all my plugins and in my browser) before loading the site to test the code.
Also, to be completely sure, I tested again after deactivating Autoptimize, W3Total Cache, and Cloudflare. I reactivated the plugins as they did not affect anything.