group js and delay css to the end of the page for speed test