Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:59:46+00:00 2026-06-07T01:59:46+00:00

Short Version: Templating done completely with serving one html file and loading page-specific data

  • 0

Short Version:

Templating done completely with serving one html file and loading page-specific data using ajax/sockets, with node, what sort of performance should I expect? design-wise good or bad?

Long Version

I’m currently in the process of learning to code better node. I’m a long time javascript fan and I’m currently trying to figure out good/bad practices in node.js

I’m thinking about templating, I’m struggling with how to seperate what I’m presenting from what I’m storing. I’m reading a lot of MVC articles and I really want to seperate the view logic without having messy code.

My Question is:

Let’s say I have a website, it contains several files represent ‘screens’ the users see, let’s say in this basic example the users should be able to see: Index, About, Contact, Portfolio.

Now I need these pages to load dynamically, meaning I don’t want to have to update the template for each of these files every time but they all look very similar.

Since node is completely based on async operations – how good/bad would it be to just deliver the same .html page for all of them, and then load all the data from the server based on which page I’m on using AJAX / web sockets ?

(naively, loop through all the sections with name=’view’ and fetch content by id or something similar)

This, I feel would provide async loading of the page, and completely decouple the site layout from the rest of the site. This feels very node to me, no blocking, everything async. I’m looking for opinions from experienced developers regarding the subject.

Also, any tips related to building a site using node.js are appreciated. I come from a PHP background and I really want to avoid stuff similar to webmatrix when designing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:59:47+00:00Added an answer on June 7, 2026 at 1:59 am

    A couple of pitfalls with this sort of “single page site”:

    SEO: This content will be difficult for a spider to index. It’s more applicable for walled-off content, such as a user’s email.

    Navigation: Preserving browser behavior users are used to is possible, but you have to think about it explicitly – how will bookmarking work? How about the back button?

    You might be better off delivering pages in the traditional way (no reason you can’t render your templates in node on the back-end). Then optimize your client code and cache system so that the second page loads quickly – it shouldn’t need to re-fetch the .css or .js.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short Version : I'm using a 64bit dll (system.data.sqlite) in an Asp.net MVC app
Short Version: What are the chances that a site's various sub-pages' page-ranks will suffer
Short version : How can I drag Link 1 into one of the dropdowns
Short version: assuming I don't want to keep the data for long, how do
Short version: What kind of escape sequence can one use to search for unicode
Short version : How can an MFC ActiveX control loaded into a web page
Short version: I'm wondering if it's possible, and how best, to utilise CPU specific
Short Version: When I've created a Channel using ChannelFactory on a client which uses
Short version : I think I need help with properly using events in PowerShell
Short Version: I'm looking for a technique to keep nearly-sorted data in nearly-sorted order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.