Solved

How do you reduce the CPU memory usage on a json call to YouTube

Posted on 2013-05-31
4
346 Views
Last Modified: 2013-06-06
Hi,

I have some code that goes out and retrieves a youtube channel and displays it on the page.

It works fine however, each time that the page refreshes the cpu memory usage increases by 500k.

Is there a way to reduce ( or eliminate) the increase in memory usage.

I have attached my code

Thanks!
youtube-channel.html
0
Comment
Question by:smfmetro10
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 43

Expert Comment

by:Rob
ID: 39213579
There are a lot of videos on that page. The browser will be downloading and caching the videos. Once all the videos have finished downloading and playing do you still see the increase in memory usage when you refresh the page.
The answer to this is really to cut down the number of videos you have on any one page
0
 

Author Comment

by:smfmetro10
ID: 39217305
Thanks for the reply.

Yeah- agreed, however the "powers that be" would like the videos all on one page.

Once the videos have finished downloading the page will increase in memory usage each time you refresh the page.  Internet Explorer seems to be using more memory usage than Fire Fox
0
 
LVL 43

Accepted Solution

by:
Rob earned 500 total points
ID: 39218113
Are you noticing this on more than one computer?  

I've opened and refreshed your page several times and i'm not getting any increase in memory usage.  Is the site public to view, ie can you post a link to the actual offending site?

I would check that you have the latest flash plugins installed for both IE (ActiveX) and Firefox as youtube relies on that.

Also check that your versions of IE and Firefox are up to date.
0
 

Author Closing Comment

by:smfmetro10
ID: 39226144
Excellent! Thanks!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question