Forums

Technical question concerning <?php if (is_home()) (3 posts)

  1. baal666
    Member
    Posted 8 months ago #

    Hi,

    I was wondering... If I use the `<?php
    if (is_home()) {` to show some features only on home page, does it slow the site on the home page and/or make it faster on the single pages?

    I mean: does the additionnal request is really worth it or should I put everything on every page?

    Thanks

  2. jeremyclark13
    Moderator
    Posted 8 months ago #

    I think the actual check if it's the home page is negligible and if you got alot of code that your hiding that pulls data from the database say a mini loop or something then yes it could be worth it.

  3. baal666
    Member
    Posted 8 months ago #

    Thanks. I'll try it. Right now I am running mini because too much script and HTML calls, but I will give it a try.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.