Component specific ClientLibs?
Hey folks,
I haven't seen a way to do this, but is there a way to load CSS/JS in your <head> conditionally when a specific component is on page?
The use-case is that we have a component with quite a bit of CSS/JS that is ONLY used on a given page or two, so rather than load that CSS/JS everywhere, we only want to load it when that component is on-page.
I'm sure I could query the page I'm on and see if the component is on page, but I was wondering if there's a more performant/built in way to do this.
Thanks!