Having a problem with a Tapestry 5.2.6 project. We are using JavaScriptStack:

public JQueryBTStack(SymbolSource symbolSource, AssetSource assetSource) {
this.js = new Asset[] {
assetSource.getContextAsset("/js/excanvas.compiled.js", null),
assetSource.getContextAsset("/js/jquery.bgiframe.min.js", null),
assetSource.getContextAsset("/js/jquery.hoverIntent.js", null),
assetSource.getContextAsset("/js/jquery.bt.min.js", null)
};
this.css = new StylesheetLink[] { new StylesheetLink(
assetSource.getContextAsset("/css/bt.css", null)) };
}

But when I go to a page and look in the source or check the network tab in in 
chrome's developer tools I see all those JS files being individually 
downloaded. When I look in the source each one has its own <script> tag with 
src pointing to each of the js files listed above.

I have verified that I am running in production mode:
 configuration.add(SymbolConstants.PRODUCTION_MODE, "true");

I even went so far as to specify combine scripts directly even though I know 
setting prod mode should be enough.
        configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");

Is there something I am missing or am not doing correctly? My searches on the 
web havent revealed what I am doing wrong.

Thanks,
Seamus

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to