1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect3 id="zend.view.helpers.initial.inlinescript">
4 <title>InlineScript Helper</title>
7 The <acronym>HTML</acronym> <emphasis><script></emphasis> element is used to either
8 provide inline client-side scripting elements or link to a remote resource
9 containing client-side scripting code. The <classname>InlineScript</classname>
10 helper allows you to manage both. It is derived from <link
11 linkend="zend.view.helpers.initial.headscript">HeadScript</link>,
12 and any method of that helper is available; however, use the
13 <methodname>inlineScript()</methodname> method in place of
14 <methodname>headScript()</methodname>.
18 <title>Use InlineScript for HTML Body Scripts</title>
21 <classname>InlineScript</classname>, should be used when you wish to include
22 scripts inline in the <acronym>HTML</acronym> <emphasis>body</emphasis>. Placing scripts
23 at the end of your document is a good practice for speeding up delivery of
24 your page, particularly when using 3rd party analytics scripts.
28 Some JS libraries need to be included in the <acronym>HTML</acronym>
29 <emphasis>head</emphasis>; use <link
30 linkend="zend.view.helpers.initial.headscript">HeadScript</link> for those scripts.