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 7079627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:41:42+00:00 2026-05-28T06:41:42+00:00

I have a basic javascript question. In terms of performance, security, maintainability, which would

  • 0

I have a basic javascript question. In terms of performance, security, maintainability, which would be better. To maintain one script file, with multiple javascript files, and creating a framework that would manipulate the interface.

For example I have an index.html, that loads multiple js files. Then depending on what actions are done, the page is manipulated.

Or is it better to create and maintain multiple html files? Index.html, login.html, etc.

Thank you.

**EDIT

to be more detailed, lets say I have an index.php, it loads multiple javascript files, and provides the basic layout of the page. Then depending on what action the user selects, the page doesn’t load, instead, it creates an ajax request, then if it has to, manipulate the DOM, then display the data where needed.

  • 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-05-28T06:41:43+00:00Added an answer on May 28, 2026 at 6:41 am

    It seems like you are trying to create a one page user experience that utilizes multiple views (html files), by calling their content and manipulating the dom based upon user input/actions.

    If you are concerned with maintainability and performance separating out your presentational elements into separate files and then loading those files into your current view is the most efficient way of handling this functionality in both respects. For instance, if a user is automatically logged in after they have logged in an initial time, loading the markup for the login form with your singular page would be a waste. Additionally, if there is other content that may or may not be utilized by each user each time your application is used, the same logic applies.

    From a security standpoint, I do not see a major difference between the two options (1 page vs multiple pages) depending upon what kind of information you are passing to the client. Regardless ajax calls can be handled in a secure way, as long as you are not sending any secure data asynchronously back and forth from client to server.

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

Sidebar

Related Questions

I am making a webapp. I have a fairly basic question about javascript performance.
So I have a rather basic javascript problem which I have been slamming my
I'm learning jQuery/javascript and have a rather basic question. Why doesn't this work? Thanks
I am new to javascript and have a very basic question: I have this
Possible Duplicate: Basic Javascript question: How to open a new window? I have such
I am new to JavaScript, I have a very basic question. I have this
I have a basic model in which i have specified some of the fields
I have a basic ActiveRecord model in which i have two fields that i
I've just started learning jQuery/javascript, so this might seem like a really basic question,
I have a small question in JavaScript. Here is a declaration: function answerToLifeUniverseAndEverything() {

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.