Attempt to fix Safari issue by ensure platform.js is first script on the page.