save you bandwidth by splitting css and javascript files and load them in necessary place only.
for example splitting styles.css into 3
- style.css - default in all place
- comments.css - css at comments place
- more.css - for other thing like archive/pages or whatever
then load them at right place. in your header.php put
<?php if (is_single() && have_post()) : ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/css/comments.css" />
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/engine/comments.js.php?2"></script>
<?php endif; ?>
i’m use ajax commenting but i required the javascript at single page only. hope this trick can save your bandwidth… sikit-sikit.. haha
6 Comments
tapi kalau orang hotlink kau nyer file, parah jugak beb. jenuh weh…
yer tu satu problem gak, aku cek ramai kanak kanak dok paw flash player aku letak kat fs![[bomb3] [bomb3]](http://wan.pengganas.net/smilies/bomb3.gif)
tapi tu bukan dalam konteks entry ni :)
Ko tambah lagi ni:
&& ('open' == $post-> comment_status) || ('comment' == $post-> comment_type) )orait zeo.. nanti aku tambah![[smile] [smile]](http://wan.pengganas.net/smilies/smile.gif)
![[thumb] [thumb]](http://wan.pengganas.net/smilies/thumb.gif)
tenkiu berimas !
aku bru lps unsuspend hosting blk.. hosting aku over resource psl ade forum cina dgn site indon curi link album mp3 dgn tv series aku.. hampess…
eh.. kluar topik.. haha.. sori2![[thumb] [thumb]](http://wan.pengganas.net/smilies/thumb.gif)
tu la len kali jangan letak direct link file-file gitu.. nanti parah