This a recommendation from YSlow, because it helps wrowser render page faster by leaving javascript part for the end.
you should put your initialization code in onload... Davor Hrg On Thu, Apr 24, 2008 at 2:13 PM, Harald Geritzer <[EMAIL PROTECTED]> wrote: > > hi all, > > is there a special reason for rendering the javascript includes on bottom > of the page in latest 5.0.12 snapshot? > > i got a fckeditor on my page and it seems like my editor field wants to > initialize the FCKeditor before the script ist even loaded? > > any hints welcome, > harald > > > <script type="text/javascript"> > var editor_html = new FCKeditor('html'); > editor_html.BasePath = '/wtp/assets/rd/t5/components/fckeditor/'; > editor_html.ToolbarSet = 'Default'; > editor_html.Height = '300px'; > editor_html.Width = '100%'; > editor_html.Value = ''; > editor_html.Create(); > > </script> > > ... > > <script src="/wtp/assets/scriptaculous/5.0.12-SNAPSHOT/prototype.js" > type="text/javascript"></script><script > src="/wtp/assets/scriptaculous/5.0.12-SNAPSHOT/scriptaculous.js" > type="text/javascript"></script><script > src="/wtp/assets/scriptaculous/5.0.12-SNAPSHOT/effects.js" > type="text/javascript"></script><script > src="/wtp/assets/tapestry/5.0.12-SNAPSHOT/tapestry.js" > type="text/javascript"></script><script > src="/wtp/assets/rd/t5/components/Indicator.js" > type="text/javascript"></script><script > src="/wtp/assets/rd/t5/components/fckeditor/fckeditor.js" > type="text/javascript"></script><script type="text/javascript"> > <!-- > Tapestry.DEBUG_ENABLED = true; > Tapestry.onDOMLoaded(function() { > Tapestry.init({"validate":[["index",[["required","Sie müssen einen Wert > für Index angeben."]]],["name",[["required","Sie müssen einen Wert für Name > angeben."]]],["language",[["required","Sie müssen einen Wert für Sprache > angeben."]]],["contentType",[["required","Sie müssen einen Wert für Typ > angeben."]]],["selectShop",[["required","Sie müssen einen Wert für Select > Shop angeben."]]],["contentLocation",[["required","Sie müssen einen Wert für > Ort angeben."]]],["depth",[["required","Sie müssen einen Wert für Tiefe > angeben."]]]]}); > }); > // --> > </script></body></html> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >