Sometimes, not all resources should be stapled, i.e. bundled with HtmlStapler.
Which resources to ignore?
To explicitly ignore a resource, add dummy parameter:
the url; for example:
All links with this parameter will not be stapled into the bundle and, therefore, not removed from the page.
IE optional condition tags
Resources defined between IEs optional condition tags are not collected into bundles. They are optional and IE only, so stapling them does not have sense.
stored in the one subfolder under the webroot:
tiny_mce. So, the usage
would be like this:
If we run this page with HtmlStapler enabled, it won't work! Why?
Because the content of
tiny_mce.js is stored in the bundle (with other
/jodd-bundle), and not from the
tiny_mce folder. So TinyMCE can't
find and load any plugin.
One way to solve this is to simply ignore TinyMCE from stapling by
If you insist in having TinyMCE main JS stapled, then you have to move
tiny_mce to the root so to be found. Unfortunately,
this way you loose the transparency of using HtmlStapler, so it is not
considered as a good idea. Better idea is to programmatically set the
correct paths (if possible) on TinyMCE initialization.