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 !

Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

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.