raptorjs-legacy / raptorjs

Source code for the RaptorJS Toolkit
Other
94 stars 12 forks source link

Optimizer: Add support for generating HTML with aggregated JS inline #30

Open patrick-steele-idem opened 11 years ago

patrick-steele-idem commented 11 years ago

Allow for incremental loading of large JavaScript bundles by generating an HTML with each file part as a separate script block. The generated HTML page could then be used to load the JavaScript in a page by loading it in an iframe.

<script>parent.eval('define("my-module", function() {... }');</script>
<script>parent.eval('define("another-module", function() {... }');</script>