modernizr Questions

6

I'm playing with the html5/javascript getUserMedia api to write a js app that will use the device's camera if available. I'm using Modernizr to detect the capability (of the browser) like this: if...
Charitacharitable asked 14/10, 2012 at 19:48

2

Solved

Is there a way with JavaScript to check whether the client-browser supports the GEO-URI-scheme? I want to show a coordinate for nonsupported browsers as a link to a map <a href='http://osm.or...

4

Solved

I'm trying to evaluate an expression which contains power, in string as **. i.e. eval("(22**3)/12*6+3/2").The problem is Internet Explorer 11 does not recognizes this and throws syntax error. Which...

2

Solved

I'm migrating to Bootstrap 5.0.2 and cleaning up the bundling for optimization. With deprecated support for various older browser versions and the fact that Modernizr.js hasn't been updated since 2...

7

Solved

I've encountered this error when installing deps of my package: $ npm i npm ERR! code EINTEGRITY npm ERR! sha1-tU7jWojzuU8MIY2VLAx+BwluNo0= integrity checksum failed when using sha1: wanted sha1-...
Vita asked 22/6, 2017 at 12:11

2

Solved

I'm looking at modernizr which is supposed to help with feature detection which is supposedly the bees knees in figuring out if your website is compatible with a given web browser but I do not see ...
Sympathize asked 2/8, 2014 at 15:46

7

Is there a way to detect browser support for background-attachment: fixed? Edit: Although this feature is widely supported on desktop browsers it is poorly supported on portable devices which I wh...
Determinate asked 1/1, 2013 at 23:6

7

Solved

I'm new to Modernizr and I'm just looking for a simple way to check for overall browser compatibility. I've generated a Modernizr script to test for only the most essential components of my web app...
Vitality asked 31/8, 2013 at 23:7

5

Solved

I'm using a custom modernizer config which has selected the features I employ in my page (and only those features). So, I'd like to simply grab the className of the <html> of the page so I ...
Colp asked 14/7, 2012 at 20:42

9

Solved

I wanted to use the Modernizr JS library to detect for some browser properties to determine what content to show or not show. I have an app called Pano2VR which outputs both HTML5 and SWF. I need t...
Orchard asked 20/11, 2012 at 17:4

3

I am learning angular2 and building my own custom components using ng2-bootstrap. I want to use modernizer to detect form input which are natively supported by browser. I am using webpack for buil...
Hermanhermann asked 29/6, 2016 at 18:37

7

Solved

I notice that in a lot of template engines, in the HTML5 Boilerplate, in various frameworks and in plain php sites there is the no-js class added onto the <HTML> tag. Why is this done? Is t...
Treillage asked 17/7, 2011 at 14:35

4

Solved

I want to use Modernizr to detect whether a user is view a site on a desktop, tablet or mobile device. My initial first thoughts are obviously to check screen sizes that should be enough for mobil...
Bresee asked 28/10, 2011 at 10:42

1

Solved

Chromium gives me a warning about my event listener not being passive. Fine. I'm not going to use event.preventDefault() there so I am willing to make it passive. But then when I read the detail...
Seigniory asked 17/5, 2018 at 14:0

1

We want to secure our site with Content-Security-Policy, and even with the setting of allowing inline scripts (default-src 'self'; script-src 'self' 'unsafe-inline'), loading modernizr (2.6.2) prod...
Fayefayette asked 12/7, 2018 at 7:58

2

Solved

Prior to Modernizr v3, I was using yepnope.js Modernizr.load and yepnope.js have both been deprecated. How do we conditionally call stylesheets or javascript files now? Example that worked with ...
Laissezfaire asked 29/11, 2015 at 18:44

2

At first this seems to be duplicate question answered here but there is more that need to be figured out. How can I resolve below given [Violation] warning in google chrome console? [Violation...

4

I'm building a website which my target group is very general (ages 13-oo, so hello IE9, hello ancient android browser), so I need polyfills for some stuff (viewport, calc etc). Before I used Modern...
Farseeing asked 27/9, 2015 at 15:17

2

Solved

I want to use some new HTML5 form attributes and input types on a webpage. Some browsers already support them, others don't and never will. Thats why I want to use Modernizr - and thats were my tro...
Lucia asked 24/1, 2013 at 16:38

6

Is there a way that I can use the CSS3 'Background-Size' property and then use something like Modernizr to ensure that it's supported in older browsers (in particular I want to use 'background-size...
Malacology asked 10/10, 2011 at 16:21

4

Solved

Does anyone know what this error means? This message started to appear in the Chrome console this week and is throwing an error in jquery modernizr. Doesn't seem to be much helpful info out on the ...
Haemophilic asked 29/10, 2014 at 19:54

2

Solved

Is there any way to detect whether a browser supports CSS custom properties (eg. color: var(--primary))? I need to write a script that behaves slightly differently in browsers that don't sup...
Sojourn asked 24/6, 2016 at 11:9

2

Solved

Using data URI in links (<a href="data:) is not supported in IE and Microsoft Edge (Data URI link <a href="data: doesn't work in Microsoft Edge). I'm trying to use Modernizr to dete...
Leatri asked 18/10, 2015 at 11:50

2

Solved

I'm writing an Angular 2 app but am conscious that some users may not be using a browser that can support Angular 2. I have a check for whether Javascript is enabled, I am more interested in wheth...
Siebert asked 26/4, 2016 at 22:46

1

Solved

is there a way to detect if calling play() on a video element is allowed without a user gesture? On Android Chrome this warning is given: Failed to execute 'play' on 'HTMLMediaElement': API can on...
Obeisance asked 18/9, 2015 at 13:39

© 2022 - 2025 — McMap. All rights reserved.