Question

I have tried to implement yepnope, and no matter what I try, the yepnope events simply do not fire at all, no matter which example on their homepage I try. I have no errors in my Firebug log.

I have the following in my <head> tag.

    <script type="text/javascript" src="yepnope.js"></script>
    <script type="text/javascript">  
        yepnope({
            test: window.jQuery,
            nope: 'jquery.js',
            complete: function () {
                console.log('jQuery loaded!');
            }
        });               
    </script> 

The 'jQuery loaded' message is never logged in the console. The jquery.js file is in the same folder as my index.html file, so this should work as is, right?

Thanks in advance for any advice.

Was it helpful?

Solution

I found the solution - something I missed in the manual. I needed to have prop[er cache headers. Once I set the proper cache headers, it worked. This is on the YepNope homepage, under the heading "Things to keep in mind".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top