<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Load remote CSS file dynamically with jQuery</title> <atom:link href="http://zuzara.com/blog/2009/12/30/load-remote-css-file-dynamically-with-jquery/feed/" rel="self" type="application/rss+xml" /><link>http://zuzara.com/blog/2009/12/30/load-remote-css-file-dynamically-with-jquery/</link> <description>code and thoughts</description> <lastBuildDate>Wed, 28 Dec 2011 00:09:25 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Nobu</title><link>http://zuzara.com/blog/2009/12/30/load-remote-css-file-dynamically-with-jquery/comment-page-1/#comment-9314</link> <dc:creator>Nobu</dc:creator> <pubDate>Wed, 23 Nov 2011 00:52:40 +0000</pubDate> <guid
isPermaLink="false">http://zuzara.com/blog/?p=104#comment-9314</guid> <description>But you don&#039;t know when example.css has been loaded completely, no? </description> <content:encoded><![CDATA[<p>But you don&#039;t know when example.css has been loaded completely, no?</p> ]]></content:encoded> </item> <item><title>By: Thomas</title><link>http://zuzara.com/blog/2009/12/30/load-remote-css-file-dynamically-with-jquery/comment-page-1/#comment-8372</link> <dc:creator>Thomas</dc:creator> <pubDate>Thu, 22 Sep 2011 14:32:18 +0000</pubDate> <guid
isPermaLink="false">http://zuzara.com/blog/?p=104#comment-8372</guid> <description>Would it not be simpler to do the following:
$(document).ready( function() {
$(&quot;head&quot;).append(&quot;&lt;link&gt;&quot;);
css = $(&quot;head&quot;).children(&quot;:last&quot;);
css.attr({
rel:  &quot;stylesheet&quot;,
type: &quot;text/css&quot;,
href: &quot;/css/example.css&quot;
});
}
Just a thought. It would also allow the relative links to work :-) </description> <content:encoded><![CDATA[<p>Would it not be simpler to do the following:</p><p>$(document).ready( function() {<br
/> $(&quot;head&quot;).append(&quot;&lt;link&gt;&quot;);<br
/> css = $(&quot;head&quot;).children(&quot;:last&quot;);<br
/> css.attr({<br
/> rel:  &quot;stylesheet&quot;,<br
/> type: &quot;text/css&quot;,<br
/> href: &quot;/css/example.css&quot;<br
/> });<br
/> }</p><p>Just a thought. It would also allow the relative links to work <img
src='http://zuzara.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Nobu</title><link>http://zuzara.com/blog/2009/12/30/load-remote-css-file-dynamically-with-jquery/comment-page-1/#comment-4458</link> <dc:creator>Nobu</dc:creator> <pubDate>Tue, 28 Dec 2010 16:19:15 +0000</pubDate> <guid
isPermaLink="false">http://zuzara.com/blog/?p=104#comment-4458</guid> <description>Yes, those should be absolute paths. </description> <content:encoded><![CDATA[<p>Yes, those should be absolute paths.</p> ]]></content:encoded> </item> <item><title>By: Filip</title><link>http://zuzara.com/blog/2009/12/30/load-remote-css-file-dynamically-with-jquery/comment-page-1/#comment-4451</link> <dc:creator>Filip</dc:creator> <pubDate>Tue, 28 Dec 2010 08:11:10 +0000</pubDate> <guid
isPermaLink="false">http://zuzara.com/blog/?p=104#comment-4451</guid> <description>If you load remote CSS file and insert it as a local CSS file (via &lt;style&gt; element, as you say), then relativ URLs inside CSS (such as path to backgrounds) whoud be broken. Right? </description> <content:encoded><![CDATA[<p>If you load remote CSS file and insert it as a local CSS file (via &lt;style&gt; element, as you say), then relativ URLs inside CSS (such as path to backgrounds) whoud be broken. Right?</p> ]]></content:encoded> </item> </channel> </rss>
