WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. baal666
    Member
    Posted 5 years 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. Jeremy Clark
    Moderator
    Posted 5 years 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 5 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.