If the page loads lodash.min.js but does not include the above code, that could be a sign that there’s some previously unknown bug or plugin/theme conflict.
I think this might be the issue. The JS is being loaded in but I can’t spot the code above.
It looks like our host is automatically minifying the JS into a single bundle, so I can’t actually see the line where the file gets loaded in, instead I can find it in the Network Resource tab of Dev Tools within a file called build.min.js
I imagine this is what’s causing the issues and that a workaround might be difficult.
Can I add that line in manually perhaps?