I thought the spaces would be an issue too, but they worked just fine on my previous builds.
I thought also perhaps that adding externally loaded javascript was causing problems - but removing that doesn’t help.
The only other major change is that I recently added a domain name. I looked that up and the only relevant problem I found was that the domain must be proxied - which it is. So, still not sure.
Your Javascript is throwing an error, which will stop execution. I don’t think your dynamic image loading was ever executing at all because of this. The error is about screen.orientation.lock, which is a real thing but is not widely supported. You should check if it’s present before calling it.