Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design A proper way to (lazy) load css & js or silent injection Reply To: A proper way to (lazy) load css & js or silent injection

#268827
Shikkediel
Participant

I’ve stopped caring about CSS blocking and think it’s not really worth it unless you have a huge file.

For JS, I use the defer attribute. That’ll work fine if you don’t care about IE9 and is actually quicker than putting scripts at the bottom of the page – you can put them in the head section and it’ll load asynchronously (simultaneous) with the page itself.