> $(function(){
> $('head').append('<link rel="stylesheet" href="jquery.css"
type="text/css">');
> });
That's pretty dangerous. The CSS file will load asynchronously, and you
won't know when it's done. In the meantime, any content in the page may
render unstyled. You are likely to get a flash of unstyled content which is
then reformatted when your CSS file finishes loading.
If you want to load CSS dynamically, it's much better to do it with
document.writeln from code running in the document HEAD:
document.writeln( '<link rel="stylesheet" href="jquery.css"
type="text/css">' );
This way the CSS file behaves just like any other CSS file loaded directly
from HEAD: no content will be rendered until the CSS is ready.
-Mike
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/