Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top