Disable core script?

I don't want yii to inject jquery into the head section of my layout. I would rather do this myself after the body tag. How can I accomplish this?

I don't want to disable client scripting altogether, using

$app->getClientScript()->enableJavaScript = false;

I just want yii to render my scripts below the document. I think this is a pretty typical scenario.

What do you mean "render my scripts below the document"? Those registerXXX functions have a position parameter that allows you to specify where the registered script (files) will be inserted.

This is a useful method when adding my own scripts to the page, but I want to change the position of the core scripts.

Do you mean you want script like jquery.js be included in the body instead of head? Why would you want so?

Since javascript blocks page rendering while it is being loaded and executed, you can achieve a faster perceived page load by putting it at the end of the body.

See here:

http://developer.yah…rformanc_5.html

This is not supported currently. It seems moving js files to the page bottom is still debateful. We are also looking at a similar problem that involves using some js code to include external js files. Hopefully, the solution to that problem would also solve yours.

I will keep an eye out --thank you for your help!