public interface ResourceBatchingConfiguration
WebResourceManagerImpl.
Currently contains the configuration for batch support.| Modifier and Type | Method and Description |
|---|---|
List<String> |
getSuperBatchModuleCompleteKeys()
Gets the list of resource plugin modules that should be included in the superbatch, in the order that
they should be batched.
|
boolean |
isBatchContentTrackingEnabled() |
boolean |
isContextBatchingEnabled()
Determines whether web resources in the same context should be batched together.
|
boolean |
isJavaScriptTryCatchWrappingEnabled()
When JavaScript resources are batched, each script within the batch can be wrapped in
its own try/catch block to prevent an exception breaking the whole batch.
|
boolean |
isPluginWebResourceBatchingEnabled()
Determines whether plugin resources of the same type defined within a single web resource
are batched into one file.
|
boolean |
isSourceMapEnabled()
Enables generation of the Source Map.
|
boolean |
isSuperBatchingEnabled()
Gets whether web resources in different resource modules should be batched together.
|
boolean |
optimiseSourceMapsForDevelopment()
Source Map could be optimised for production or development.
|
boolean |
resplitMergedContextBatchesForThisRequest() |
boolean isSuperBatchingEnabled()
List<String> getSuperBatchModuleCompleteKeys()
WebResourceManager.requireResource(java.lang.String) for one of these resources will be a no-op,
and any dependency resolution for resources will stop if the dependency is in the superbatch.boolean isContextBatchingEnabled()
boolean isPluginWebResourceBatchingEnabled()
boolean isJavaScriptTryCatchWrappingEnabled()
boolean isBatchContentTrackingEnabled()
@ExperimentalApi boolean resplitMergedContextBatchesForThisRequest()
This method is called multiple times (at least once per request) and its value is not cached. Therefore, implementations can perform request-local logic. That is, they can browser-sniff for IE.
@ExperimentalApi boolean isSourceMapEnabled()
Could be enabled in production too with `optimiseSourceMapsForDevelopment` set to `false`, with such setting it won't slow down the instance.
@ExperimentalApi boolean optimiseSourceMapsForDevelopment()
In production the JS & CSS generation will be fast (exactly the same as without the Source Map) but the Source Map generation will be slow.
In development the JS & CSS generation will be a little slower but the Source Map generation will be fast.
It's better to enable this option during development (it **must** be disabled in production).
Copyright © 2019 Atlassian. All rights reserved.