I like all my javascript to be at the head section of my xhtml..... why does ScriptRegistrar need to be at the bottom?
2 Answers, 1 is accepted
0
Atanas Korchev
Telerik team
answered on 01 Feb 2010, 08:38 AM
Hello Nacho Fuentes,
The ScriptRegistrar component needs to be after all other Telerik View components because they need to register with the registrar. This is required because the ScriptRegistar outputs the JavaScript files and initialization code required by those components.
Not to leave you empty handed though, it's because loading Javascript stops the rendering of the page. The web-browser thinkgs that the javascript you include might effect your final UI and therefore stops the rendering when a Javascript file is requested.
So if you put the Script Registrar at the bottom you bascily avoid the printing of a blank page.