move load script/css to top of file, to prevent layout loading before styling