@WebsiteDeveloper, perhaps it makes sense to mention the issue #7951 in a comment here and that it should not be required once we update to a PhantomJS with not-so-outdated JS engine.