Can you please help me use javascript to load CSS files based on URL parameters?
I have 3 parameters (one, two, and three) and I have 3 CSS files.
if (window.location.search.search(/[?&]parameter=one(?:$|&)/) !== -1)
{
What code should go in there to load the css?
}
Should the JS be held in the header of the HTML file?