Solved

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

Posted on 2013-05-31
4
342 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 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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…

685 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