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

  1. baal666
    Posted 7 years ago #


    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?


  2. Jeremy Clark
    Posted 7 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
    Posted 7 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


No tags yet.