Solved

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

Posted on 2013-05-31
4
333 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
  • 2
  • 2
4 Comments
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
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
Comment Utility
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 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 500 total points
Comment Utility
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
Comment Utility
Excellent! Thanks!
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now