Themed 2026 Presentation Style Preview

TopicTransformationCoreRegisterStartupScript Method

This is used to register a block of script to execute in the $(document).ready() function by presentation styles that support script.

Definition

Namespace: Sandcastle.Core.PresentationStyle.Transformation
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2025.12.18.0
public void RegisterStartupScript(
	int priority,
	string scriptBlock
)

Parameters

priority  Int32
The priority of the script. Lower numbers will have higher priority
scriptBlock  String
The script block to execute

Remarks

Only unique script blocks are registered. Any subsequent calls to this method with an identical script block will ignore the duplicates.

See Also