Dynamic CSS Changes
To capture dynamic styles in the application, use
CaptureJSS.
Earlier, when you enabled captureJSS, it captured the entire stylesheet
from the document, including stylesheets imported via <link> tags.
This resulted in a significant increase in the size of the request payload, causing some
requests to be dropped before they reached the server.
To reduce the payload size and eliminate duplicate styles, exclude the stylesheets loaded
through <link> elements from captureJSS. This is
supported in both Full DOM and DOM Diff capture modes.
To enable this functionality, configure the following
options:
captureJSS: true, // Enable only when dynamic CSS needs to be captured
keepImports: true,
captureStyle: true