Posted By

pedromagalhaes on 02/23/11


Tagged

cufon


Versions (?)

Avoid in Internet Explorer the slow cúfon font replacement


 / Published in: jQuery
 

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....

  1. $(document).ready(function(){
  2. $('.cufon').addClass('block');
  3. Cufon.replace('.cufon', { hover: false, hoverables: { li: false, a: false } });
  4. });

Report this snippet  

You need to login to post a comment.