Support » Everything else WordPress » Technical question concerning <?php if (is_home())

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Technical question concerning <?php if (is_home())’ is closed to new replies.