Solved

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

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

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 …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

828 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