Commit 164416d8 authored by Ivan Tyagov's avatar Ivan Tyagov

Use requirejs when possible.

parent cd5ab325
<html>
<head>
<!-- Use proper path -->
<script src="../../../../lib/require/require.js"> </script>
<script src="../../../../lib/jquery/jquery.js"> </script>
<script src="../../../../lib/jstorage/jstorage.js"> </script>
<script type="text/javascript" src="../../renderjs.js"></script>
<head>
<body>
......
<html>
<head>
<script src="../../../../lib/require/require.js"> </script>
<script src="../../../../lib/jquery/jquery.js"> </script>
<script src="../../../../lib/jstorage/jstorage.js"> </script>
<script type="text/javascript" src="../../renderjs.js"></script>
<head>
<body>
......
// Add required by RenderJs jstorage library only if used HTML application uses requirejs
if (typeof require !== 'undefined') {
require(["../../../../lib/jstorage/jstorage.js"], function(util) {
});
}
// fallback for IE
if (typeof console === "undefined" || typeof console.log === "undefined") {
console = {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment