Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
James Barrett13,253 Points
Using the Network Tab to optimize JS HTTP requests - Need help removing them!
I am currently in the midst of developing a website for a youtuber and I am receiving three failed requests on the network tab:
Now I believe it must be coming from this snippet of code:
<div class="col" id="latest"> <h2>View My Latest Video!</h2> <iframe width="300" height="200" src="http://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=ThePokeRaf" frameborder="0" allowfullscreen></iframe> </div>
I came to this conclusion as I am noticing this in the headers tab:
(it provides more or less the same information on each error)
I'm not really sure how to get rid of these requests and why they are actually there because my website is pulling through the latest video on a channel perfectly fine!
Steven Parker210,475 Points
These requests are being made by the source of your iframe.
You can see them if you load the iframe source URL by itself. There's probably nothing you can do about that short of eliminating the iframe entirely.