?
Solved

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

Posted on 2013-05-31
4
Medium Priority
?
350 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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…
Suggested Courses

752 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