<?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: How to disable scripts and styles</title>
	<atom:link href="http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:19:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matt</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-600018</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 09 Feb 2012 21:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-600018</guid>
		<description>Howdy,

Just to say &quot;thanks&quot; worked brilliantly and was super handy in lightening a mobile version of the site

Matt</description>
		<content:encoded><![CDATA[<p>Howdy,</p>
<p>Just to say &#8220;thanks&#8221; worked brilliantly and was super handy in lightening a mobile version of the site</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to remove WP Geo plugin from specific pages &#124; Creative Web Design Agency</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-566897</link>
		<dc:creator>How to remove WP Geo plugin from specific pages &#124; Creative Web Design Agency</dc:creator>
		<pubDate>Tue, 17 Jan 2012 11:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-566897</guid>
		<description>[...] That unfortunately was not the case. So I had to keep digging. Then I found this excellent article How to disable scripts and styles by Justin Tadlock that explained it all: I needed to de-register the scripts, not simply remove the [...]</description>
		<content:encoded><![CDATA[<p>[...] That unfortunately was not the case. So I had to keep digging. Then I found this excellent article How to disable scripts and styles by Justin Tadlock that explained it all: I needed to de-register the scripts, not simply remove the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyborg</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-500397</link>
		<dc:creator>Cyborg</dc:creator>
		<pubDate>Thu, 01 Dec 2011 04:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-500397</guid>
		<description>Wow I had actually deleted the wp-pagenavi.css and added the CSS to Main: style.css to speed up my pages.  As well as I had disabled: &quot;Use pagenavi-css.css&quot; from wp-admin PageNavi menu. Every thing looks good so I never checked server logs. I was surprised when I checked my apache &quot;error.log&quot; today it was so big as 800MB in only 2 months!!!

wp-pagenavi was reason for this mess and to get rid of that I found this article and I :
1). Started to search for: wp_enqueue_style in wp-pagenavi.php unfortunalty I couldn&#039;t find that word in this file or directory.

2). Added this to my themes functions.php

&lt;pre&gt;&lt;code&gt;add_action( &#039;wp_print_styles&#039;, &#039;my_deregister_styles&#039;, 100 );

function my_deregister_styles() {
	wp_deregister_style( &#039;wp-pagenavi&#039; );
}&lt;/code&gt;&lt;/pre&gt;

3). I also tried to add: remove_action(&#039;wp-pagenavi&#039;);
to functions.php

----
I tried this but my server was still showing same error.log growing :-(

Finally I had to edit file: plugins/wp-pagenavi/core.php
COMPLETLY REMOVE LINE NR 180, Looks ike:

&lt;pre&gt;&lt;code&gt;add_action( &#039;wp_print_styles&#039;, array( __CLASS__, &#039;stylesheets&#039; ) );&lt;/code&gt;&lt;/pre&gt;

And the error is GONE :-)

I wonder:
1).  How can I remove this action from themes functions.php instead of  deleting line 180? It would be good to know since future updates for wp-pagenavi will put this line back again.

2). How to achieve 100% performances? The best way is actually to delete line 180 in wp-pagenavi/core.php? It doesn&#039;t make any sense to define this function/action on every page to server and then telling it again to &quot;don&#039;t use/remove&quot; this function/action.

You should remove every single byte which is useless if you are on a low budget server or are a professional developer to achieve and deliver BEST Performances.
Bytes makes KB´s &amp; KB´s makes MB´s.. so on..

Thank you Justin for helping :-)</description>
		<content:encoded><![CDATA[<p>Wow I had actually deleted the wp-pagenavi.css and added the CSS to Main: style.css to speed up my pages.  As well as I had disabled: &#8220;Use pagenavi-css.css&#8221; from wp-admin PageNavi menu. Every thing looks good so I never checked server logs. I was surprised when I checked my apache &#8220;error.log&#8221; today it was so big as 800MB in only 2 months!!!</p>
<p>wp-pagenavi was reason for this mess and to get rid of that I found this article and I :<br />
1). Started to search for: wp_enqueue_style in wp-pagenavi.php unfortunalty I couldn&#8217;t find that word in this file or directory.</p>
<p>2). Added this to my themes functions.php</p>
<pre><code>add_action( 'wp_print_styles', 'my_deregister_styles', 100 );

function my_deregister_styles() {
	wp_deregister_style( 'wp-pagenavi' );
}</code></pre>
<p>3). I also tried to add: remove_action(&#8216;wp-pagenavi&#8217;);<br />
to functions.php</p>
<p>&#8212;-<br />
I tried this but my server was still showing same error.log growing <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Finally I had to edit file: plugins/wp-pagenavi/core.php<br />
COMPLETLY REMOVE LINE NR 180, Looks ike:</p>
<pre><code>add_action( 'wp_print_styles', array( __CLASS__, 'stylesheets' ) );</code></pre>
<p>And the error is GONE <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I wonder:<br />
1).  How can I remove this action from themes functions.php instead of  deleting line 180? It would be good to know since future updates for wp-pagenavi will put this line back again.</p>
<p>2). How to achieve 100% performances? The best way is actually to delete line 180 in wp-pagenavi/core.php? It doesn&#8217;t make any sense to define this function/action on every page to server and then telling it again to &#8220;don&#8217;t use/remove&#8221; this function/action.</p>
<p>You should remove every single byte which is useless if you are on a low budget server or are a professional developer to achieve and deliver BEST Performances.<br />
Bytes makes KB´s &amp; KB´s makes MB´s.. so on..</p>
<p>Thank you Justin for helping <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to remove WP Geo plugin from specific pages &#124; &#124; design is philosophydesign is philosophy</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-462347</link>
		<dc:creator>How to remove WP Geo plugin from specific pages &#124; &#124; design is philosophydesign is philosophy</dc:creator>
		<pubDate>Sun, 30 Oct 2011 19:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-462347</guid>
		<description>[...] That unfortunately was not the case. So I had to keep digging. Then I found this excellent article How to disable scripts and styles by Justin Tadlock that explained it all: I needed to de-register the scripts, not simply remove the [...]</description>
		<content:encoded><![CDATA[<p>[...] That unfortunately was not the case. So I had to keep digging. Then I found this excellent article How to disable scripts and styles by Justin Tadlock that explained it all: I needed to de-register the scripts, not simply remove the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 Tips to Make Your WordPress Blog Outstanding &#045; JustAnART</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-458837</link>
		<dc:creator>10 Tips to Make Your WordPress Blog Outstanding &#045; JustAnART</dc:creator>
		<pubDate>Wed, 26 Oct 2011 13:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-458837</guid>
		<description>[...] Tadlock gives a very smart solution in this tutorial on how to disable scripts and styles of plugins. This can be done by looking for wp_enqueue_style() [...]</description>
		<content:encoded><![CDATA[<p>[...] Tadlock gives a very smart solution in this tutorial on how to disable scripts and styles of plugins. This can be done by looking for wp_enqueue_style() [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 WordPress ‘HOW-TO’ to Give Your Blog the Quality it Deserves &#8211; Just a blog :)</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-446642</link>
		<dc:creator>10 WordPress ‘HOW-TO’ to Give Your Blog the Quality it Deserves &#8211; Just a blog :)</dc:creator>
		<pubDate>Wed, 12 Oct 2011 11:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-446642</guid>
		<description>[...] this tutorial Justin Tadlock describes a smart solution to disable scripts and styles of your plugins by looking [...]</description>
		<content:encoded><![CDATA[<p>[...] this tutorial Justin Tadlock describes a smart solution to disable scripts and styles of your plugins by looking [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billboc</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-390481</link>
		<dc:creator>billboc</dc:creator>
		<pubDate>Tue, 02 Aug 2011 21:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-390481</guid>
		<description>hello

for the &quot;bad plugin&quot; i tried:

&lt;pre&gt;&lt;code&gt;if ( !is_single() ) {
remove_action(&#039;wp_print_styles&#039;, &#039;mfbfw_css&#039;); }&lt;/code&gt;&lt;/pre&gt;

but it don&#039;t work...
any ideas ?
thank you for help
++

Billboc</description>
		<content:encoded><![CDATA[<p>hello</p>
<p>for the &#8220;bad plugin&#8221; i tried:</p>
<pre><code>if ( !is_single() ) {
remove_action('wp_print_styles', 'mfbfw_css'); }</code></pre>
<p>but it don&#8217;t work&#8230;<br />
any ideas ?<br />
thank you for help<br />
++</p>
<p>Billboc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy N Boon &#187; 12 Lesser Known But Useful WordPress Hacks</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-377718</link>
		<dc:creator>Amy N Boon &#187; 12 Lesser Known But Useful WordPress Hacks</dc:creator>
		<pubDate>Wed, 13 Jul 2011 09:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-377718</guid>
		<description>[...] Source: How to Disable Scripts and Styles – Justin Tadlock [...]</description>
		<content:encoded><![CDATA[<p>[...] Source: How to Disable Scripts and Styles – Justin Tadlock [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 WordPress ‘HOW-TO’ to Give Your Blog the Quality it Deserves</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-373160</link>
		<dc:creator>10 WordPress ‘HOW-TO’ to Give Your Blog the Quality it Deserves</dc:creator>
		<pubDate>Wed, 06 Jul 2011 19:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-373160</guid>
		<description>[...] this tutorial Justin Tadlock describes a smart solution to disable scripts and styles of your plugins by looking [...]</description>
		<content:encoded><![CDATA[<p>[...] this tutorial Justin Tadlock describes a smart solution to disable scripts and styles of your plugins by looking [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tianyi</title>
		<link>http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles#comment-344675</link>
		<dc:creator>tianyi</dc:creator>
		<pubDate>Mon, 23 May 2011 08:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1773#comment-344675</guid>
		<description>Dear Justin and other guys,

Firstly thank you for Can it be possible to use custom field to control loading css and js or not?

I tried but failed.

Best regards!</description>
		<content:encoded><![CDATA[<p>Dear Justin and other guys,</p>
<p>Firstly thank you for Can it be possible to use custom field to control loading css and js or not?</p>
<p>I tried but failed.</p>
<p>Best regards!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

