Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How much javascript is too much

I have recently been working with someone on a project that is very ajax intense. All calls are made to web services using ajax and the data logic is handled on the client side. The server side code just acts as the data access layer and does little else. How much javascript is too much?

like image 804
CountCet Avatar asked Jan 27 '09 16:01

CountCet


People also ask

Why do websites have so much JavaScript?

The code was easier to read, write, and maintain, and the barrier to entry was incredibly low, since it was incredibly easy to include JavaScript code in a website by simply copying and pasting JavaScript code into a web page's HTML file.

Do we really need JavaScript?

Most of what you'll be doing with a JavaScript framework is building web applications. Yes, JavaScript can help make those applications become more interactive, dynamic and exciting, but there are times when JavaScript is overkill and will slow down the performance of the site.

Does JavaScript size matter?

How much does JS bundle size really matter? Simply put, JavaScript bundle size matters a lot. From some of the folks that help steer the ship: Companies with high-traffic applications save millions of dollars by tweaking and optimizing their performance.

Why do websites have so many scripts?

It's easier to develop a site if the scripts are separate but usually better to combine them for delivery as long as they aren't going to interact with each other. The reduction of requests will usually make the page load faster.


1 Answers

Javascript may be too much when it reveals too much to the client, so I would look from the security perspective. From the performance perspective in general using Javascript is better.

like image 89
Otávio Décio Avatar answered Sep 27 '22 22:09

Otávio Décio