Can you help point me in the right direction? It's been bothering me for quite some time now. In my content editor (using javascript + jquery), I have the ability to change fonts on the fly. Whenever a font is changed in the editor, an ajax request is sent to retrieve the css file containing the font and styles, which is then appended to the head section. This works flawlessly in Mozilla and IE, but appears to have a slight issue in webkit browsers. After changing the font 10 times, more often than not, I have to resize the browser by just a few pixels in order for the styles to be applied.
Any suggestions on how to ensure that the styles are applied without having to resize the browser? I've tried triggering the resize event, but it seems that was a rookie mistake on my part. ;)
Thank you very much! (and as always, apologies for my not-so-perfect English)