[wp-hackers] Adding A CSS Loader

Computer Guru computerguru at neosmart.net
Mon Apr 23 19:12:03 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt wrote:
> Yes, but if we do this, unnecessary CSS might be loaded, causing Page Load
> Times to be higher. It'd be better to make a system to only load the
> necessary CSS, so if a Plugin isn't be used on a page, don't load the CSS
> for it.
> 

That's not true.

The same way I do:

if(is_home())
add_filter('wp_head', 'my_function) //or whatever it is....


I'll now do
if(is_home())
css_include('
*/ This is my CSS file /*

#p {
....
}

');

So that argument doesn't hold any water.

It wouldn't hurt to quote something so we'd know what message you're
referring to though.... ;)

- --
Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGLQUD3SICh4XKUt0RAouFAKC3S4sMW6VG9rr1fCW30aHCgJ8dFgCeN1n9
e0ZaDmH2qy+96aF9vE1+/VI=
=orh9
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list