Avoid in Internet Explorer the slow cúfon font replacement


/ Published in: jQuery
Save to your folder(s)

This is a simple trick. You have the paragraphs with cufon in a class named ".cufon".
Than, is CSS, say .cufon{display:none}
When the DOM is loaded add to the .cufon class, the css property "display:block"
You won't notice a thing in Mozilla, Chrome, Safari or Opera, and in IE it will make a hug difference....


Copy this code and paste it in your HTML
  1. $(document).ready(function(){
  2. $('.cufon').addClass('block');
  3. Cufon.replace('.cufon', { hover: false, hoverables: { li: false, a: false } });
  4. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.