aFarkas/webshim — Issue #96: "can't load module: mediaelement-core/swf" warning in console
Author: kdonald
Created: 2012-01-31 15:31:51+00:00
State: open

I'm loading polyfiller async with requirejs with the following config:

webshims.setOptions({
waitReady: false,
basePath: "/static/libs/webshims/1.8.7/shims/"
});
webshims.polyfill("forms");

The shims work as expected. However, on browsers that don't support HTML5 forms I'm seeing two warnings in the JavaScript console:

"can't load module: mediaelement-core"
"can't load module: mediaelement-swf"

I wasn't expecting this since I didn't ask to load the mediaelement features. It seems the mediaelement shim is getting included on the page anyway in the file 9.js fetched by the polyfiller. I tried changing the call to polyfill("forms") to polyfill() to load everything but still receive the warning.

I also tried removing the mediaelement features from polyfiller manually but that didn't help. Any ideas what could be causing this?