2
0

Zend_View-Helpers-InlineScript.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect3 id="zend.view.helpers.initial.inlinescript">
  4. <title>InlineScript Helper</title>
  5. <para>
  6. The HTML <code>&lt;script&gt;</code> element is used to either provide
  7. inline client-side scripting elements or link to a remote resource
  8. containing client-side scripting code. The <code>InlineScript</code>
  9. helper allows you to manage both. It is derived from <link
  10. linkend="zend.view.helpers.initial.headscript">HeadScript</link>,
  11. and any method of that helper is available; however, use the
  12. <code>inlineScript()</code> method in place of
  13. <code>headScript()</code>.
  14. </para>
  15. <note>
  16. <title>Use InlineScript for HTML Body Scripts</title>
  17. <para>
  18. <code>InlineScript</code>, should be used when you wish to include
  19. scripts inline in the HTML <code>body</code>. Placing scripts at the
  20. end of your document is a good practice for speeding up delivery of
  21. your page, particularly when using 3rd party analytics scripts.
  22. </para>
  23. <para>
  24. Some JS libraries need to be included in the HTML <code>head</code>;
  25. use <link linkend="zend.view.helpers.initial.headscript">HeadScript</link>
  26. for those scripts.
  27. </para>
  28. </note>
  29. </sect3>
  30. <!--
  31. vim:se ts=4 sw=4 et:
  32. -->