javascript - Put Scripts at the Bottom -


yslow recommends should put scripts @ bottom of page.

where should put them, after body end tag?

my whole site runs in jquery, javascript files needed @ beginning. if move them end, might stop site working. being case, instead should put these scripts best performance?

you should put them right before closing body tag. make sure scripts being initiated using

$(document).ready() 

and should have no issues.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -