Similar to element conditions where you define rules for when an element should be output. This would be very nice since you could control precisely where and when a custom asset is loaded. From a performance optimization perspective, you don’t want to output a CSS or JS file on every single page of your site when the particular functionality or styles it provides isn’t used.
I have a feeling this would get a little complicated, but I can take a look once I get through some other items. I would probably add scripts and CSS to a component and add that in conditionally.
Yeah I suppose so. The UI might become a bit cluttered. A component approach may work but I could see that not always being desirable or obvious.