View Full Version : HTTP requests, iframes, external files

name _F1
10-13-2007, 12:08 PM
I am aware that reducing the total number of HTTP requests a page makes can reduce page loading times.

If I have a page with a number of iframes, each of which includes an external stylesheet and an external script file, is that three requests for each iframe? Or is it only one request for each unique file?

I have index.php, which contains iframes one.php and two.php. That's 3 HTTP requests. (I think?) If index.php, one.php, and two.php all reference stylesheet.css and script.js, is that 2 additional HTTP requests, or 6?

Thanks to anyone who helps me understand. :)

10-13-2007, 10:14 PM
The total number of HTTP requests would be:

1 for index.php
+ 2 for the iframes
+ 3 for the stylesheets in the iframes and index.php
+ 3 for the javascripts in the iframes and index.php
= 9