Modern Single Page Application navigation for XenForo 2.3 — built, live on NikeTalk, open to talk

noxa

Member
Licensed customer
Hi all,

XenForo still navigates like a classic multi-page app. Every click rebuilds the document: HTML, scripts, layout, and the ad units sitting in that layout. Members feel the flash between pages, and the ad stack starts over on every route.

I built a SPA navigation layer for latest XenForo 2.3 to fix that. It is an add-on on top of a normal board. XenForo still renders the page, still owns permissions, templates, and routes. After the first load, an internal click fetches the next page and swaps the content in place. The shell stays. The URL, title, and browser history stay normal. A route or add-on that needs a real document load falls back to one.

What changes in practice​

  • Forums, threads, profiles, and search feel like a modern app. The wait between clicks is mostly gone.
  • Header, footer, and rail ad slots can stay in the DOM across navigations, so those creatives are not destroyed on every click.
  • In-content units still refresh with the new page, with a hook so the ad stack can reload them cleanly.
  • Page scripts are not re-initialized on every navigation, which cuts a lot of layout jump and timing bugs.
  • Sessions go deeper. Where we compared before and after on live traffic, pages per session moved up meaningfully — in the best measured case, on the order of 30%. I would rather you click the demo than take that number on faith.

It is already running in production on a few forums.

The public test is niketalk.com. Click through forums and threads and watch the content swap without a full reload. On NikeTalk only, the footer Style Chooser has a Legacy style if you want the old full-reload behavior side by side.

A longer write-up, with the same demo notes: https://spa.xenhired.com/

If it looks useful on your board, or you want to talk through theme and ad-tag fit, reply here or PM me.

A bit about me​

I'm Sultan. I work as a full-stack dev.

Most of my XenForo time is on large, busy communities: upgrades, complex migrations, custom add-ons, performance, SEO and Structued data, bots, Cloudflare, and the ad stack that has to keep working through all of that. I stay with a board long enough to see how it behaves under real traffic.

Forums I work with
  • NikeTalk — sneaker and streetwear (33M+ posts). Heavy US audience, a serious ad operation, and the public place to try the SPA.
  • VS Battles — a large fandom and versus community. High thread volume, a lot of media, and plenty of custom behavior. The SPA layer runs here as well.
  • TheCatSite — a long-running pet community I have supported on the XenForo side.
  • symptome.ch — a large German-language health forum. Members discuss symptoms, complaints, and treatment options.
  • Smoking Meat Forums — a long-running BBQ and smoking community. Recipes, techniques, and equipment talk, with a lot of photo-heavy threads.
  • StyleForum — a long-running menswear and style community. Thread Gallery is one of the pieces I built for them.

Other add-ons​

These came out of the same boards. XenForo 2.3.
  • SPA Navigation — the layer above. App-style navigation with persistent ad slots and a page-change hook for the ad stack.
  • Discovery — hot, rising, top, and classic threads, trending forums, and a staff spotlight, on public pages with its own ranking.
  • Similar Threads — sits on Enhanced Search and re-ranks similar threads with extra quality signals, using the existing widget.
  • Smart Embed — click-to-load media with a preview card, so embeds do not all boot on first paint. Works on its own or with SPA.
  • Thread Gallery — a thread's attached images, using XenForo's own lightbox.
  • Forum SEO — thread summaries, meta and snippet control, structured data fixes, and pagination SEO.

Ad ops​

I also work the ad side forums, not only the development. I have good contacts at Raptive, SheMedia, Playwire, Woven Audience, Publisher Collective, Aditude, and similar networks.

If your audience is a real match for one of them, I can make a direct introduction. Fit is the whole point. A sneaker community and a gaming community want different demand, and I would rather say so than hand you a logo list.

Upgrades, migrations, custom work​

For a forum upgrade, a migration, a custom add-on, or a feature that the current board does not quite do — I am happy to help. I am also happy to take control and give day-to-day dev support.

Reply in this thread or PM me with a short description of the board and what you need. If I am the wrong person, I will say so.

Sultan
LinkedIn
 
I'm on a 16:9 laptop screen - On your link Niketalk.com I get a large blank area of black at the top before forums or whats new and have to scroll down to see them.
 
Smoking Meat Forums — a long-running BBQ and smoking community. Recipes, techniques, and equipment talk, with a lot of photo-heavy threads.
☝️ I've visited this one several times. We may be doing something for Thanksgiving (US) on the smoker. 😁

Tried the Nike site and it is very fast switching between pages in a thread. 👍
 
I'm on a 16:9 laptop screen - On your link Niketalk.com I get a large blank area of black at the top before forums or whats new and have to scroll down to see them.
Those are reserved ad spaces to deal with the layout shift (CLS). You can ignore that :)

Any feedback about the page navigation? As you might have seen, they navigate almost instantly, similar to a modern JS-based app.
 
☝️ I've visited this one several times. We may be doing something for Thanksgiving (US) on the smoker. 😁

Tried the Nike site and it is very fast switching between pages in a thread. 👍
Yeah, I had the opportunity to work on this for many years. I have migrated it from the old custom Huddler framework to XenForo.

Glad to know you liked the SPA navigation. It is really fast. Let me know if you need any assistance :)
 
The speed is absolutely amazing, very nice!
The huge empty ad spaces ruin the experience a bit though, hard to look past it.
Navigation is super fast without a page refreshing completely on every click.

Does this put more load on the server?

Yep, really like it.
 
The speed is absolutely amazing, very nice!
The huge empty ad spaces ruin the experience a bit though, hard to look past it.
Navigation is super fast without a page refreshing completely on every click.

Does this put more load on the server?

Yep, really like it.
Thanks for your valuable feedback!

Yes, the idea is to make XenForo behave like a modern web application, with instant navigation and no full-page refreshes. This improves the user experience while significantly reducing server load. For example, NikeTalk's server load time dropped by more than 50%.

Only the initial page load puts pressure on the server. Subsequent navigations are almost instant, updating only the necessary content. Scripts are also loaded just once per session and remain ready for reuse.

Regarding the reserved ad space, I agree with your point. However, this was specifically requested by the forum owner and isn't a requirement for other forums.

Thanks again!
 
Yes, the idea is to make XenForo behave like a modern web application, with instant navigation and no full-page refreshes. This improves the user experience while significantly reducing server load.

I like this a lot better than the "endless page" scrolling that so many sites use.

Regarding the reserved ad space, I agree with your point. However, this was specifically requested by the forum owner and isn't a requirement for other forums.

I've dealt with a site owner like that, and turned down the job. They never understood that keeping the most important site content "above the fold" was more important than shoving a huge ad in everyone's face when they first hit the site. They were just money-hungry...and couldn't understand why members were leaving for other forums.
 
I like this a lot better than the "endless page" scrolling that so many sites use.
Yes, I feel the same. My goal was to modernize XenForo and make it faster without compromising its original experience.

I've dealt with a site owner like that, and turned down the job. They never understood that keeping the most important site content "above the fold" was more important than shoving a huge ad in everyone's face when they first hit the site. They were just money-hungry...and couldn't understand why members were leaving for other forums.
To be honest, sometimes this kind of implementation is necessary when dealing with CLS issues. Whether placing ads at the top of the page is a good approach is a separate discussion. Personally, I agree with you. Content should always come first.
 
Back
Top Bottom