Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do html forms Use much cpu power?

Tags:

html

css

forms

I'm going to have a page on my website that will have about 50 forms on it. Stacked in accordion CSS. Would this hurt users with slower computers?

like image 927
Miguel RemedyBeatz Dey Avatar asked Jan 04 '13 17:01

Miguel RemedyBeatz Dey


People also ask

What uses a lot of CPU power?

Browser: Under certain circumstances, the browser (e.g. through countless open tabs) can use up a lot of the CPU's processing power. Plug-ins and add-ons that run undetected in the background are another cause for high CPU.

Is 100% CPU usage normal?

If the CPU usage is around 100%, this means that your computer is trying to do more work than it has the capacity for. This is usually OK, but it means that programs may slow down a little. Computers tend to use close to 100% of the CPU when they are doing computationally-intensive things like running games.

Is 80% CPU usage good?

If you are currently not running any additional programs, your CPU usage should be anywhere between 1% and 10% just through Windows processes alone. Anything higher than that on an idle PC means that something might be wrong.

How much CPU usage is normal for gaming?

However, as a general rule of thumb, most gamers would expect their CPU usage to be around 50-60% when gaming. Anything above this may indicate that the game is not optimised for the player's system, or that the player has chosen settings that are too demanding for their hardware.


1 Answers

Even though I do not know why you would want 50 forms on a page, having 50 forms (assuming an average number of DOM nodes), will consume insignificant amount of CPU, when the page is rendered.

If however, in aggregation your forms have like a million DOM nodes, you'll be able to see a good amount of CPU consumption while the page is rendering. More importantly, what you do with on the page using JavaScript, will addon more consumption.

In most cases, you should be more concerned about memory usage. Also if you care about details, make sure that you follow valid HTML, use CSS selectors efficiently, etc.
To optimize rendering, this is a list of good practices.

Also in case you're using a lot of CSS-transitions, it will consume a significant amount of CPU.

The best way to judge is, however, to test it yourself. If you're using the Chrome browser, make sure to keep an eye on the Chrome Task Manager (Shift + Esc), and follow the CPU consumption when you reload the page, or do activities on the page. It also gives you the process id, incase you want to invesigate further.

like image 184
Pranav 웃 Avatar answered Sep 19 '22 05:09

Pranav 웃