<apex: includeScript> Component in Visualforce Page
We can make this component safe inside an iteration component by de-duplicated multiple references to the same script.
The HTML pass-through attributes are supported by this component using the "html-" prefix, which is attached to the generated <script> tag.
The <apex: includeScript> has the following attributes on the Visualforce page:
The id is a string-type attribute, i.e., a unique identifier that allows other components in the page to reference the component.
The loadOnReady is a boolean-type attribute used for specifying whether the script resource is loaded immediately or not. If not, the resource will be loaded after the document model is designed. The boolean value false is set as the default value for this attribute.
Let's take an example to understand how we can use this component on the Visualforce page: