Ivan said:
Did you actually try to get it by AJAX? Most likely it will be loaded from browsers cache.
Mazniak said:
Loading by AJAX always results in at minimum an HTTP request having to be sent and returned, plus the time to load the CSS file if the response code is not something like a 304. I really don’t want any extra latency as I want to modify some styles before the page loads
I say... why not just override the styles you want to change? For example:
/* here is your normal css: styles.css */
body {
color: black;
}
/* and you want to switch to red text instead... */
/* dynamically add this on page load */
body {
color: red !important;
}