문제

Why does the iPhone not draw the page correctly on load

I'm using intention.js to reorder the content on a page for different viewport widths. However when I load the page on an iPhone it displays the in_base / in_standard layout or the content order that is meant for the desktop viewport. If I rotate the iPhone the in_phone layout or mobile view is displayed. On an android device the page renders correctly ie the second image. Also the page displays correctly in chrome dev tools emulating an iPhone.

This is on load.

photo-1

After the iPhone has been rotated.

photo-2

도움이 되었습니까?

해결책

It turns out that I need to add intention.js to the bottom of the document.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top