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
March 24, 2018 at 4:45 pm
#268827
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.