Class JavaScriptDeferHeaderResponse

All Implemented Interfaces:
Closeable, AutoCloseable, IHeaderResponse

A header response which defers all AbstractJavaScriptReferenceHeaderItems.

To prevent any error because of possible dependencies to referenced JavaScript files *all* JavaScriptHeaderItems are replaced with suitable implementations that delay any execution until all deferred AbstractJavaScriptReferenceHeaderItems have been loaded.

Note: This solution depends on the execution order of JavaScript in the browser: The 'DOMContentLoaded' event has to be fired after all deferred JavaScript resources have been loaded. This doesn't seem to be the case in all browsers, thus this class should be considered experimental.

svenmeier +