UNPKG

webshim

Version:

modular capability-based polyfill loading libary, which extends jQuery with HTML5 features in legacy browsers

39 lines (35 loc) 1.05 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Webshims Lib Test Suite</title> <script src="../../src/extras/modernizr-custom.js"></script> <script> window.asyncWebshims = window.asyncWebshims || {}; window.asyncWebshims.cfg = window.asyncWebshims.cfg || []; window.asyncWebshims.cfg.push([{"extendNative": false, "testData": "markup1"}]); window.asyncWebshims.polyfill = null; </script> <script src="yepnope.js"></script> <script src="empty-1.js" async=""></script> <script> yepnope([ { load: '//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js' }, { load: '../../src/polyfiller.js', complete: function(){ $.webshims.ready('mediaelement', function(){ setTimeout(function(){ (window.opener || window.parent).loadingTest($.webshims.cfg.testData, $.webshims.cfg.extendNative); }, 10); }); } }]); </script> <script src="empty-polyfiller.js"></script> <script src="empty-2.js" async=""></script> </head> <body> </body> </html>