Jump to content

Jquery Animations And Apache

Recommended Posts

Hi All,

I need some technical clarification.

I am using uWamp as a stack. uWamp has a dialog box that shows the CPU consumption % by Apache.

I have a jQuery animation on my webpage, where squares move randomly. CPU consumption % by Apache is around 5%.

If I disable the animation, then the CPU consumption drops to nearly 0%.

I don’t quiet understand the relation between both, since Apache is server-side and jQuery is client-side.

Also, suppose I have 3 tabs open in my web browser, one of them being for my website. If I move to another tab, then again the CPU consumption % drops to nearly 0% (however the animation keeps going).

1/Shouldn’t jQuery use computer (client) resources instead of Apache for displaying the animation ?

2/In a production environment where 20 users are viewing this page, would Apache globally consume 100% of the server CPU resources ? Hard to believe this.

Thanks !

Share this post

Link to post
Share on other sites

1. Yes. I don't know why you're seeing Apache activity but it is not because of the animation.

2. No. Apache stops caring as soon as the connection is closed, which is probably a few seconds after the final request has been sent to the server (such as CSS, JS, or images).

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.