Is it OK to put CSS and JS in Chunks?

When I was splitting my CSS in an ‘Above the fold’ part and the rest, I figured I could as well put all of the CSS in a chunk in order to retrieve it faster than it takes to get a file from the server.
Is that a correct assumption?
And how about .js?

If you include the CSS directly in your html page, this may be faster for the first request of a page.
But if you request the same page multiple times or if the same CSS file is shared between different pages of your site, then a separate CSS file can be cached by the browser.

1 Like