public static void prepareHtmlForConversion (@Nonnull final HCHtml aHtml, @Nonnull final IHCConversionSettingsToNode aConversionSettings) { // customize, finalize and extract resources prepareForConversion (aHtml, aHtml.getBody (), aConversionSettings); // Extract all out-of-band nodes into the body if (aConversionSettings.isExtractOutOfBandNodes ()) { final ICommonsList <IHCNode> aOOBNodes = aHtml.getAllOutOfBandNodesWithMergedInlineNodes (); aHtml.addAllOutOfBandNodesToHead (aOOBNodes); } // This would be the correct place to perform aggregation of CSS and JS // nodes (before they are potentially moved) // Move scripts to body? if (HCSettings.isScriptsInBody ()) aHtml.moveScriptElementsToBody (); }
if (HCSettings.isScriptsInBody ()) aHtml.moveScriptElementsToBody ();
if (HCSettings.isScriptsInBody ()) aHtml.moveScriptElementsToBody ();
HCSettings.isOutOfBandDebuggingEnabled ()); final boolean bScriptsInBody = aWPEC.params ().isCheckBoxChecked (FIELD_SCRIPTS_IN_BODY, HCSettings.isScriptsInBody ()); final boolean bUseRegularResources = aWPEC.params ().isCheckBoxChecked (FIELD_USE_REGULAR_RESOURCES, HCSettings.isUseRegularResources ()); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_SCRIPTS_IN_BODY.getDisplayText (aDisplayLocale)) .setCtrl (new BootstrapCheckBox (new RequestFieldBoolean (FIELD_SCRIPTS_IN_BODY, HCSettings.isScriptsInBody ())))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_USE_REGULAR_RESOURCES.getDisplayText (aDisplayLocale)) .setCtrl (new BootstrapCheckBox (new RequestFieldBoolean (FIELD_USE_REGULAR_RESOURCES,
HCSettings.isOutOfBandDebuggingEnabled ()); final boolean bScriptsInBody = aWPEC.params () .isCheckBoxChecked (FIELD_SCRIPTS_IN_BODY, HCSettings.isScriptsInBody ()); final boolean bUseRegularResources = aWPEC.params () .isCheckBoxChecked (FIELD_USE_REGULAR_RESOURCES, aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_SCRIPTS_IN_BODY.getDisplayText (aDisplayLocale)) .setCtrl (new HCCheckBox (new RequestFieldBoolean (FIELD_SCRIPTS_IN_BODY, HCSettings.isScriptsInBody ())))); aForm.addFormGroup (new BootstrapFormGroup ().setLabel (EText.MSG_USE_REGULAR_RESOURCES.getDisplayText (aDisplayLocale)) .setCtrl (new HCCheckBox (new RequestFieldBoolean (FIELD_USE_REGULAR_RESOURCES,