JQuery-Snowfall icon indicating copy to clipboard operation
JQuery-Snowfall copied to clipboard

Option to exclude mobile devices

Open bombcheck opened this issue 8 years ago • 3 comments

It would be great to have an option to exclude mobile devices (would be nicer to their cpu and batteries). If anyone is interested: Check out this commit on my fork: https://github.com/bombcheck/JQuery-Snowfall/commit/7aba203152ceeddedc67e0902f4dc6eb96dcacc1

bombcheck avatar Dec 01 '17 08:12 bombcheck

I agree this is a nice option, however I wonder if this is something the plugin should actually handle, or just the dev when instantiating it. It's trivial to wrap with a condition

if (!mobile) {
   $('whatever').snowFall();
}

loktar00 avatar Dec 04 '17 18:12 loktar00

Sure. But on my opinion having a nice option to use is more straight forward.

bombcheck avatar Dec 04 '17 20:12 bombcheck

Useragent sniffing, not very reliable and not recommended.

We can use feature detection, battery API and so on. Because iPad and other devices also have a bad JS performance.

DanielRuf avatar Dec 14 '18 16:12 DanielRuf