The current behavior in Chrome, Firefox, and Safari when it comes to media queries and resources is to not load the resource until you need it; for example, a mobile device with a resolution of 480 pixels does not load images inside the max-device-width: 1000px
. Naturally, this is great for storing significant desktop resources from mobile devices.
I am facing inconsistency with this approach when it comes to loading font resources. The web font for all of the browsers listed above will be downloaded below. EXCEPT IE9
@media screen and (max-device-width: 1000px) { @font-face{ font-family: 'SomeFont'; src: url('../Fonts/somefont.eot'); } }
This is annoying because I want to save a large font from the mobile, but IE9 will not load the font if it is not outside the media request.
Is this the right behavior? I cannot find anything about font resources, especially in the specs, so it may be that IE9 is doing it right (although this is not my desired behavior). Can anyone shed some light on this?
source share