Load overlay CSS on demand

Kirby

Well-known member
As it is right now, CSS for overlays is included in core (core_overlay.less and thus loaded on every page (about 11.000 bytes of uncompressed CSS).

While overlays are commonly being accesed by members, guests (which usually attribute for the majority of traffic) quite often do not use any of them.

I therefore suggest to only load the overlay CSS on demand.
 
Upvote 13
Top Bottom