Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML5 swipe.js css3 transitions; offscreen rendering and caching of page elements
    primarykey
    data
    text
    <p>I am building a HTML5 magazine for tablets and desktops with use of swipe.js (<a href="http://swipejs.com" rel="noreferrer">http://swipejs.com</a>). </p> <p>Everything seems to work fine, In one HTML page I have set next to each other fullscreen list elements. The whole magazine is build up in one static html file. I can slide through the pages by swiping on tablets, and by using buttons for the desktop version (consider the example on the swipe.js homepage, but then with fullscreen slides).</p> <p>The pages are placed next to each other, and have the dimensions of the screen.</p> <pre><code>[ |0||1||2| .. |i-1||i||i+1| .. |n| ] </code></pre> <p>The swipe.js transitions are done with help of css3, using the translate3d() css function. In this case, hardware rendering is used.</p> <p>On desktop (Chrome, Safari, FF), iPad1 and (even better on) iPad2 this has the desired effect I was looking for; smooth transitions. Perfect! However, on the iPad3, the pages seem to render 'slow' when entered (by transition) for the first time. Even without setting background images (just the color), the 'rendering' of the transitioned page is considered a little 'slow'; the page is build up by 'flickering' blocks.</p> <p><strong>Assumption</strong>: My assumption is (after reading into the subject), that this is because the browser only renders the elements that are in-screen, and will cache the swiped pages only for a while, cleaning the cache afterwards to control memory management.</p> <p><strong>My question</strong>: Is there a way to control the offscreen rendering and caching, so that I can force (pre) render page elements i-1, i+1 (and flush the cache for all other page elements), to speed up my transition rendering?</p> <p><strong>Note</strong>: <em>In several topics on StackOverflow, 'flickering' of css3 transitions is mentioned. I have implemented the suggested CSS tricks but will not solve my case.</em></p> <pre><code>-webkit-backface-visibility: hidden; -webkit-transform:translate3d(0,0,0); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload