yepnope Questions

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

1

Solved

What are some good practices for loading a conditional javascript file using modernizr now that yepnope and .load are deprecated in the latest version of modernizr. Used to be able to use the .loa...
Passus asked 30/7, 2015 at 17:30

2

Solved

How do I check for FormData object using Modernizr and YepNope? <script> yepnope({ test : what.to.check, yep : 'normal.js', nope : 'flashupload.js' }); </script>
Rodriguez asked 3/5, 2012 at 15:28

2

Solved

Pretty sure I'm doing something daft here - I'm not convinced it's specific to yepnope... my node knowledge isn't that hot. Just trying to grab & build the repo to play around with some stuff ...
Headset asked 21/3, 2013 at 15:12

5

Solved

I have been implementing the yepnope script loader as part of the modernizr.js library. I have successfully got jQuery to load and jQuery dependent scripts afterwards. I am new to asynchronous load...

2

Solved

I use yepnope.js as a resource loaded. I want to execute code in my JS module only when all the dependencies for that module have been loaded. I do not want to load JS dependencies that already bee...
Tshombe asked 8/9, 2012 at 11:3

1

Solved

I'm successfully using assets pipeline for months. Now I would like to load some of my JS files asynchronously (using yepnope library). It works well when config.assets.debug is false. But in dev...
Varhol asked 19/6, 2012 at 14:13

3

Solved

How come this alerts both, yes and false? Modernizr.load([ { test: Modernizr.cssgradients, yep: alert('Supports it!'), nope: alert('Oh, damn! This browser sucks!') } ]); I'm using the lates...
Scythia asked 18/10, 2011 at 14:9

2

Solved

I'm using RequireJs for structuring my JavaScript code. Also, I'm using a lot of CSS3 and I use "Modernizr w/ YepNope" + x number of css3 polyfills. I understand "Modernizr w/ YepNope" and Require...
Circassian asked 21/2, 2012 at 20:30

1

Solved

I have the following: Modernizr.load([ { load : '//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js', complete : function () { if ( !window.jQuery ){ Modernizr.load('/js/jquery-1.6.2.m...
Issiah asked 13/12, 2011 at 21:47

2

I'm trying to detect whether media queries are present using Modernizr 2, then loading in respond.js if appropriate. I've put this in my script.js file... Modernizr.load({ test: Modernizr.mq, y...
Doublebank asked 18/9, 2011 at 9:42

1

Solved

The idea is that the page /something/index.html is loaded. But, before I show it, its dependencies (css and images in this case) are preloaded. Modernizr.load({ load: ['/something/styles.css', ...
Provoke asked 26/8, 2011 at 18:21

1

Solved

I am using yepnope.js to load javascript files dynamically,and I've noticed that my scripts appear to be loaded twice according to Firebug and Webkit Inspector. The problem is that in Firebug's Ne...
Roice asked 19/6, 2011 at 1:51

1

Solved

In the following code dd_belatedpng.js is loading despite the fact that I'm using Firefox 4.0.1. According to the yepnope.js documentation, the ielt7! prefix should cause the script only to load if...
Ichnite asked 12/6, 2011 at 0:30
1

© 2022 - 2024 — McMap. All rights reserved.