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 Net panel (Firefox 4 latest), their response is...
I am trying to (locally) use Yepnope with Modernizr to load CSS & JS Files. So I can manage the files better, and code easily.  This is the currently layout:  Modernizr.load([     {         test: Modernizr.mq('all and (max-width: 1070px)'...
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 latest chro...
Modernizr.load({ both: [a, b] }) seems to executes b before a but that's not how Modernizr is supposed to work? "yepnope.js [used by Modernizr] always executes things in the order they are listed"  Modernizr versions 2.5.3 and 2.6.2.  I&#...
At a certain point on my javascript I have the following (using Modernizr 2.6.2):  Modernizr.load([{     load: '/path/file.js',     complete: function () {         //do stuff     } }]);   It works great most of the time, except on IE8, about...
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 loading of resources, so it's a bit new to me. I have...
Using javascript to asynchronously download another javascript file.  I understand that this can be done by inserting a new script tag onto the page with the src attribute set to the file url.  I also need to run some code when the script is finished...
I'm trying to load a dynamically generated Google Font stylesheet using Modernizr (YepNope)  but always get this error:     Uncaught SyntaxError: Unexpected token ILLEGAL (css:1)   My stylesheet looks like this:  http://fonts.googleapis.com/css?f...
I'm developping a webapp for internal use in a company with a strict (and evolving) firewall.  I'm using yepnope.js / Modernizr.load to load js and css files from CDN with fallbacks.  But how do I know if a css was loaded successfully ? Is th...
I'm running into a race condition when using Modernizr to load a CSS file. On my local and staging environments, it loads the CSS file below another stylesheet in the head. This is what I want it to do, so the rules defined in the asynchronously...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.