Bundle Skin Assets on MadCap Content Flare Build

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
szahn
Jr. Propeller Head
Posts: 1
Joined: Wed Dec 27, 2017 3:18 pm

Bundle Skin Assets on MadCap Content Flare Build

Post by szahn »

The first 20 or so assets in skins are render blocking CSS and JS files. This adds up to an initial 1 second on first download if they are not already cached. It would be great if Madcap would automatically bundle the .css and .js into a single versioned file for you. Bundled assets improve performance for users. Is there a way to automatically do this in MadCap?

Current declarations:

Code: Select all

<link href="../Skins/Default/Stylesheets/Slideshow.css" rel="stylesheet" />
<link href="../Skins/Default/Stylesheets/TextEffects.css" rel="stylesheet" />
<link href="../Skins/Default/Stylesheets/Topic.css" rel="stylesheet" />
<link href="../Skins/Default/Stylesheets/Components/Styles.css" rel="stylesheet" />
<link href="../Skins/Default/Stylesheets/Components/Tablet.css" rel="stylesheet" />
<link href="../Skins/Default/Stylesheets/Components/Mobile.css" rel="stylesheet" />
<link href="../Skins/Fluid/Stylesheets/foundation.6.2.3.css" rel="stylesheet" />
<link href="../Skins/Fluid/Stylesheets/Styles.css" rel="stylesheet" />
<link href="../Skins/Fluid/Stylesheets/Tablet.css" rel="stylesheet" />
<link href="../Skins/Fluid/Stylesheets/Mobile.css" rel="stylesheet" />
<link href="Resources/Stylesheets/MainStyles.css" rel="stylesheet" />
<link href="Resources/Stylesheets/StylesForHomePage.css" rel="stylesheet" />
<script src="../Resources/Scripts/custom.modernizr.js"></script>
<script src="../Resources/Scripts/jquery.min.js"></script>
<script src="../Resources/Scripts/require.min.js"></script>
<script src="../Resources/Scripts/require.config.js"></script>
<script src="../Resources/Scripts/foundation.6.2.3_custom.js"></script>
<script src="../Resources/Scripts/plugins.min.js"></script>
<script src="../Resources/Scripts/MadCapAll.js"></script>
Desired declaration:

Code: Select all

<link href="../Skins/Default/Stylesheets/All.css?v1" rel="stylesheet" />
<script src="../All.js?v1"></script>
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Bundle Skin Assets on MadCap Content Flare Build

Post by NorthEast »

szahn wrote:The first 20 or so assets in skins are render blocking CSS and JS files. This adds up to an initial 1 second on first download if they are not already cached. It would be great if Madcap would automatically bundle the .css and .js into a single versioned file for you. Bundled assets improve performance for users. Is there a way to automatically do this in MadCap?
No, there's no setting to bundle these files. Submit a feature request to MadCap if it's something you'd like to see.
Post Reply