I was wondering, I have my _Layout.cshtml done and set. The problem I have with it, is if I add a component on a page that uses a JavaScript and/or CSS file specific to that, I have to modify the _Layout.cshtml and include it for all other pages as well (which I don't want).
I'm not using the "bundleconfig" from MS as I don't feel comfortable with it (haven't spent much time to learn that specifically or if it could help me in this scenario)
How would you approach this?
I was thinking about a piece of JavaScript I wrote yonks ago which loads scripts on demand, so you don't need to specify them on the main page, but how do you do that for stylesheets? And is this idea still viable?
Thanks for any advice in the matter
I'm not using the "bundleconfig" from MS as I don't feel comfortable with it (haven't spent much time to learn that specifically or if it could help me in this scenario)
How would you approach this?
I was thinking about a piece of JavaScript I wrote yonks ago which loads scripts on demand, so you don't need to specify them on the main page, but how do you do that for stylesheets? And is this idea still viable?
Thanks for any advice in the matter