Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Most Efficient Web Page Navigation

Hey guys I just wanted to start a discussion about what the general consensus is on the most efficient form of navigating the web page. I know that using html "a href" loads an entirely new page so it is definitely not a good route but what about PHP and Javascript. I have been loading content on my pages server-side using the PHP include method. However, I know of many people who prefer using Javascript for navigation. What methods do you use for navigation on your web pages and why?

2 Answers

I think it might be a site by site thing.

I use the html a href because my site is huge, 18 years old (I don't want to have to redirect 2,000 pages), text based (not a lot of user input required) and I don't want to lose viewers who have turned their javascript off (there is a class of somewhat paranoid knitters out there who don't know how to use their virus protection software properly so they turn off javascript).

Even though some of my pages have a lot of thumbnail images, I find it works fast and well.

> somewhat paranoid knitters

I always knew they were up to more than making garments with those knitting needles.

Ah yes, we're a sneaky bunch. You'd be amazed what you can achieve with a pair of pointy sticks. You can guarantee no-one will sit next to you on the bus, use them as emergency stakes for wilting tomato plants, occasional emergency DIY around the home, self defence in the coming zombie apocalypse. We're sorted!

I see this thread has taken an interesting turn.