www.webdeveloper.com
Results 1 to 3 of 3

Thread: Wordpress hierachy

  1. #1
    Join Date
    Nov 2012
    Posts
    3

    Wordpress hierachy

    Hello,

    I'm a novice asking about php file size. I know the Wordpress hierachy looks like this: http://wphierarchy.com/

    My question is: Will my site run faster if I lump all my php into page.php (using conditional tags for eight different pages) resulting in one big 24kB page.php file. Or am I best sticking to the template method resulting in eight smaller (3kB) php files?

    Thanks for any help,

    Andrew (Novice)

  2. #2
    Join Date
    Mar 2012
    Posts
    1,509
    Pre-broadband, the difference between a 28KB page and a 3KB one was noticeable, but both are minnows by today's standards. So the site overall might run marginally quicker if you amalgamate the 8 pages into one, but the initial load could be slower. Whether either effect would be noticeable with a small site is debatable. The only way to know for sure is to build a site both ways and compare them!

    More importantly, as you are a novice, I would suggest that the extra complexity of amalgamating the pages is simply not worth considering! Have you considered how you will test your code? Do you have a version strategy in place? Do you have an update process? Do you even have a backup???
    Last edited by jedaisoul; 04-15-2014 at 02:10 PM.

  3. #3
    Join Date
    Nov 2012
    Posts
    3
    Thanks for your reply - I'll compare the two solutions as you say and see which one is faster. I tend to eyeball test page load speed, like a novice. But I wondered if there are any great tools for checking page load speed? Sorry about my novice questions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles