Skip to content

Some patterns used in examples

alteredq edited this page Sep 21, 2011 · 1 revision

requestAnimationFrame

This lets browser control rendering updates frequency (so that, for example, resources aren't wasted when canvas element is not visible):

http://paulirish.com/2011/requestanimationframe-for-smart-animating/

meta viewport tags

<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

These tags control viewport size and scale for mobile browsers (where page content may be rendered at different size than visible viewport).

http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html

https://developer.mozilla.org/en/Mobile/Viewport_meta_tag