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

Document real world reasons to use Detectizr #21

Open
Soviut opened this issue Feb 11, 2014 · 5 comments
Open

Document real world reasons to use Detectizr #21

Soviut opened this issue Feb 11, 2014 · 5 comments
Assignees

Comments

@Soviut
Copy link
Contributor

Soviut commented Feb 11, 2014

While most developers know that feature detection is the best course of action, it would make sense to document actual incidents that require Detectizr.

One such issue that comes to mind is Safari 6.0 crashing if a calc() and transition style are used on the same element.

It would make sense to create an up to date wiki page with known issues that only userAgent sniffing can cope with.

@barisaydinoglu
Copy link
Owner

Is this issue about the link below?
https://bugs.webkit.org/show_bug.cgi?id=100568

@Soviut
Copy link
Contributor Author

Soviut commented Feb 11, 2014

Yes, this is the issue. Safari 6.1 doesn't have the issue but 6.0 and 6.0.5 do.

@dallonf
Copy link

dallonf commented Aug 22, 2014

Here's another one I'm doing: Disabling heavy CSS animations (like full-page transforms) on mobile devices because their poor little GPUs just can't take it, and I'd rather have no animation than a choppy one. Feature detection doesn't work for me because mobile browsers technically do support animations.

@Soviut
Copy link
Contributor Author

Soviut commented Aug 22, 2014

@dallonf Theoretically that can be handled by media queries rather than device detection. The smaller the screen, the less animations they get.

@gspiker
Copy link

gspiker commented May 4, 2016

I like to apply CSS hover states only on desktop browsers to avoid the double-tap-to-click scenario, like so .desktop &:hover { different: style; }

The reason I feel this is a superior approach to .no-touch &:hover or just media queries is that 1) tablets are large enough to get desktop layout in landscape mode, and 2) fancy 15" laptops with touch screens now exist, and I want those users to have hover states.

I also use it to disable heavy scripts like @dallonf, especially in javascript. Whereas desktops might check the viewport width to determine whether the function should continue, the whole kerfuffle can be avoided by not initializing the script if (!Modernizr.desktop)

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

4 participants