Memory usage in JavaScript/browser [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
This will be a bit strange question, but..
I am planning to use jQuery/knockout to write a dynamic custom wizard
which will depending on different scenarios will load different templates/UI logic to the user.
Question.
Should I take into consideration memory usage in this case? or should I manually unload/clean up/save to the server pieces of UI which is not in use??
PS. Current version of wizard will have 5-7 steps.

You should write your app the best you can functionally and then determine if memory is even an issue. If it is, then you can take steps to reduce it's memory footprint but odds are you'll be fine. For instance, go look at what a site like Facebook's memory usage, a site that everyone and their grandmother uses.

Related

What do most forum website build on? Dynamic or Static Websites? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm planning to create a forum website from 0 for my portfolio and learning experience. What should I choose between static and dynamic? Since I just thought it might affect my website performance.
I know the basic difference between static and dynamic which is one is pre-built and the other is rendered from the server-side.
I have experience in react, express, axios, mongodb, and MySQL
Any suggestion?
Big Forums are all dynamic websites.
What big sites will do for better performance is caching of dynamically generated > content. But you do not need this unless you have ~10 new visitors EVERY second ;)
Quoted from #phip1611

What is the maximum number of tags should contain a page that does not significantly slowed down? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I need to create a project of web application that contains a very long list of items and I can't use pagination...
How many tags is optimal for the single website from the point of view of the optimization?
When the website begins to slow down due to the large number of tags?
How do you deal in a different way than the pagination?
Can you suggest a javascript library free for commercial use?
As mentioned by #gus27 it all depends on what operating system, browser and most importantly the resources such as CPU and memory that is available to the browser for use.
Having said that, modern browsers can easily handle 100s if not 1000s of tags. The best way to go about optimization is to go make the system and when you hit a bottleneck try to find out the reason for it and then fix it. Don't worry about efficiency until you hit a problem which requires optimization.
Angular.js is the javascript that comes straight to my mind for the kind of javascript library that i think you want.

Comparison of ReactJS with AngularJS [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
What are the performance based advantages of ReactJS when compared to the Angular2?
You can check out this comparison of the two through which ReactJS is rendered out as the easiest to use over AngularJS. But I'd like to also stress that this is purely opinionated and this might change depending on the application being developed and its context.
For further information, you can refer this.
Right now, I mean today:
ReactJS is mature (version 15.x)
whereas Angular2 is in RC5 (not mature)
So:
React is a today or middle term best bet in term of performance (rendering, bundle size etc...)
Angular2 (if it does what it is promised to do later!) should be a long term bet.

Node.js server side application starter [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am starting a new Android app, and I would like to know what should be the best server-side stack that I could use.
I heard some about MeanIO, MeanJS, Cleverstack, Generator Angular Fullstack.
Which of these suggestions should be the best? Is there another one that is not on the list that would be even more interesting?
If I am correct in saying it depends in what you're doing and trying to focus on. If you wish to also build a web-based front-end it's probably necessary to include AngularJS. If you aren't planning on doing that you could probably cut out the need for Angular.
I imagine the MEAN stack (https://github.com/meanjs/mean) would be enough for your Node.JS server. I doubt you will need to use Angular for an android app so you will be more focused upon the Express+Node+Mongodb portions.

Page specific javascript... better to go inline or have it in the main Javascript definition? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
For javascript functions that only apply to one page, in a large(ish) web app - is it better to have the scripts inline or in the main javascript file?
If your application gets little traffic, use whatever you like best.
If your application gets a huge amount of traffic, you want to minimize:
the number of distinct requestable resources in your application to maximize cacheability
the size of each individual resource to optimize the empty cache experience.
1 and 2 contradict each other, so you have to pick a tradeoff appropriate to your application.
I would prefer having a proper module system and useful compilation tools so I don't need to have to worry sacrificing efficiency when it comes to keeping my code organized.

Categories