Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to exclude mobile devices #50

Open
bombcheck opened this issue Dec 1, 2017 · 3 comments
Open

Option to exclude mobile devices #50

bombcheck opened this issue Dec 1, 2017 · 3 comments

Comments

@bombcheck
Copy link

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:
bombcheck@7aba203

@loktar00
Copy link
Owner

loktar00 commented Dec 4, 2017

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();
}

@bombcheck
Copy link
Author

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

@DanielRuf
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants