Our website functions perfectly on all browsers and devices, except for an issue that occurs only the first time it is opened on Safari mobile or Safari Mac with narrow screens.
Website:
To reproduce on iPhone Safari:
- Open the website in private mode
- Refresh the page
To reproduce on Safari for Mac:
- Open Safari in private mode
- Switch User Agent to iOS - iPhone ( Develop > User Agent > Safari -- iOS -- iPhone )
- Resize the browser window to simulate a mobile device width
- Open the website
- Refresh the page
Expected result: The page should render consistently each time it is loaded
https://i.sstatic.net/iq8FD.png
Actual result: On the first load in private mode, only a green box appears Upon refreshing the page, the entire page renders correctly
https://i.sstatic.net/5bhJ5.png
Investigation: A comparison of the correct and broken renders showed no differences in HTML & CSS between the two.
If you inspect elements not displayed initially (but appear after refresh), there are no styles affecting visibility (e.g. opacity
, display
, visibility
, position
, etc).
UPDATE: An error in the Safari Console
Unhandled Promise Rejection: [object DOMError]
may be causing this issue.
Research suggests it could relate to auto-playing video on the page (although the video plays despite the error). Further investigation is needed to identify the root cause of this error.
We welcome any insights on why this behavior is specific to Safari.