Flash of unstyled content (FOUC) in Firefox only? Is FF slow renderer?

If you add a dummy <script> tag right after <body>, Firefox will show the page after all the css from <head> is loaded: <body> <script>0</script> <!– rest of the code –> </body> There is an official bugreport about this FOUC (Flash Of Unstyled Content) on the Firefox site: https://bugzilla.mozilla.org/show_bug.cgi?id=1404468

Font files are not loading with ASP.NET Bundles

Well, I think the problem is with your font location. I’m assuming that the bundled css virtual location /BundleStyles/css doesn’t actually exist. and if your folders structure like below Content > Font Content > style If this is true, then try this change /BundleStyles/css to /Content/css <link href=”https://stackoverflow.com/Content/css?v=pANk2exqBfQj5bGLJtVBW3Nf2cXFdq5J3hj5dsVW3u01″ rel=”stylesheet”/> and reference your font like this … Read more

IE8 CSS @font-face fonts only working for :before content on over and sometimes on refresh/hard refresh

I had the same bug. I fixed it by executing this script on domready (only for IE8 of course): var head = document.getElementsByTagName(‘head’)[0], style = document.createElement(‘style’); style.type=”text/css”; style.styleSheet.cssText=”:before,:after{content:none !important”; head.appendChild(style); setTimeout(function(){ head.removeChild(style); }, 0); This lets IE8 redraw all :before and :after pseudo elements

Google warning: Resource interpreted as Font but transferred with MIME type application/octet-stream

You need to add the following types to an .htaccess/IIS: AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff Updated .woff type from: AddType application/x-font-woff .woff (Thanks to @renadeen in comments below for pointing this out.) Check out my answer to a similar question here: Font Face not loaded Taken from here: … Read more

Are eot, ttf, and svg still necessary in the font-face declaration?

October 2018 edit tl;dr: use WOFF2, every modern browser supports it, with WOFF fallback because IE11 just won’t bloody die (late 2022 update: Microsoft actually killed it on its promised EOL date of June 15, and the world is a better place for it), and without the local() source indicator, because you want everyone to … Read more

How to know if a font (@font-face) has already been loaded?

Now on GitHub: https://github.com/patrickmarabeas/jQuery-FontSpy.js Essentially the method works by comparing the width of a string in two different fonts. We are using Comic Sans as the font to test against, because it is the most different of the web safe fonts and hopefully different enough to any custom font you will be using. Additionally we … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)