Home › Forums › JavaScript › How to load CSS using javescript › Re: How to load CSS using javescript
January 22, 2013 at 6:54 am
#121856
Paulie_D
Member
The issue here is that there are two CSS files targeted specifically for different environments, desktop & mobile.
Media queries could reduce this to a single CSS file but if the separate files are required then there is no reason that the ‘media query’ couldn’t be in the head of the page to load the css file appropriate to the screen/device width.
Something like: