Skip to content

Instantly share code, notes, and snippets.

@frankradocaj
Created July 3, 2012 02:06
Show Gist options
  • Save frankradocaj/3037069 to your computer and use it in GitHub Desktop.
Save frankradocaj/3037069 to your computer and use it in GitHub Desktop.
Opera inline module error example
require(['bootstrap-data'],
function (bootstrapData) {
console.log(bootstrapData.Message);
});
<!DOCTYPE html>
<head>
</head>
<body>
Opera inline module test
<script type="text/javascript" data-main="/main.js" src="/require.js"></script>
<script type="text/javascript">
define('bootstrap-data', function () {
return {
Message: "Yo dawg, I'm putting inline modules in your Opera."
};
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment