# wpvr/8.5.79/public/lib/pannellum/src/js/RequestAnimationFrame.js

WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress, version 8.5.79. 23 lines.

- Page: https://pluginprobe.com/plugins/wpvr/8.5.79/code/public/lib/pannellum/src/js/RequestAnimationFrame.js
- Raw: https://pluginprobe.com/plugins/wpvr/8.5.79/raw/public/lib/pannellum/src/js/RequestAnimationFrame.js
- Modified: 2022-05-19T05:47:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpvr/8.5.79/code/public/lib/pannellum/src/js/RequestAnimationFrame.js#L10-L20`.

```javascript
/**
 * Provides requestAnimationFrame in a cross browser way.
 * http://paulirish.com/2011/requestanimationframe-for-smart-animating/
 */

if ( !window.requestAnimationFrame ) {

    window.requestAnimationFrame = ( function() {

        return window.webkitRequestAnimationFrame ||
        window.mozRequestAnimationFrame ||
        window.oRequestAnimationFrame ||
        window.msRequestAnimationFrame ||
        function( /* function FrameRequestCallback */ callback, /* DOMElement Element */ element ) {

            window.setTimeout( callback, 1000 / 60 );

        };

    } )();

}

```
