jssor / slider

Touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap

Home Page:https://www.jssor.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Violation] 'requestAnimationFrame' Error Message in Chrome

opened this issue · comments

Hi,

This only started to show up less than a week but in Google Chrome V68 JSSOR is producing this error message every few seconds:

[Violation] 'requestAnimationFrame' handler took 57ms - VM56487 jssor.slider.min.js:5

I am currently running JSSOR version from cdnjs:

https://cdnjs.cloudflare.com/ajax/libs/jssor-slider/27.1.0/jssor.slider.min.js

So it's the latest version.

Thanks.

commented

Hi,
The Violation messages are warnings not errors. It's fine.
I think the performance of your slider is not as expected, it takes 57ms to finish one animation frame.

Are there layer animations in your slider? Or you used large image in your slider? Can you leave an url of your page which runs jssor slider?

Btw, the official latest stable version of chrome is 66.0.3359.117.

commented

I opened your page, it seems the jssor.slider.min.js is not referenced in your page.

image

commented

Better not use async.
If you'd like to use async, you'd check if the library has been loaded before initializing jssor slider.