Support Article
Including CSS or javascript files decreases performance
SA-16570
Summary
Including CSS or javascript files decreases performance.
OOTB CPM has multiple sections and controls where the javascript or CSS files used by the sections are included in the section itself. This reduces browser performance because these static content files cannot be bundled. The recommended practice is to include all CSS files a bundle in the Skin rule and all javascript files as a bundle in the harness.
The reason for performance decrease is that clients have a very small expiry time for browser cache which makes pulling up these files from the server more frequent.
Following are some examples:
• Section ToasterPop
• Section ScreenPopPublicEventHandler
• Section ScreenPopInterationStarter
Steps to Reproduce
Open one of the sections in the examples above. Static content files are included as part of the section.
Root Cause
The reason for performance decrease is that clients have a very small expiry time for browser cache which makes pulling up these files from the server more frequent.
Resolution
Apply HFix-24770.Published January 31, 2016 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.