apex:includeScript
A link to a JavaScript library that can be used in the Visualforce page. When specified, this component injects a script reference into the <head> element of the generated HTML page.
Multiple references to the same script are de-duplicated, making this component safe to use inside an iteration component. This might occur if, for example, you use an <apex:includeScript> inside a custom component, and then use that component inside an <apex:repeat> iteration.
For performance reasons, you might choose to use a static JavaScript tag before your closing <apex:page> tag, rather than this component. If you do, you’ll need to manage de-duplication yourself.
This component supports HTML pass-through attributes using the “html-” prefix. Pass-through attributes are attached to the generated <script> tag.
Example
1<apex:includeScript value="{!$Resource.example_js}"/>The example above renders the following HTML: