Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

13. Using Iframes Sparingly > Parallel Downloads with Iframes

Parallel Downloads with Iframes

This section explores the download behavior of iframes and the main page. In general, resources in an iframe are downloaded in parallel with resources in the main page. In some cases, however, the main page can cause resources in the iframe to be blocked from downloading.

Script Before Iframe

External scripts in the main page that are loaded in the typical way (<script src="url"></script>) block all resources that follow. Therefore, an iframe and its resources are blocked from downloading if they are preceded by an external script. This is demonstrated in the Script Before Iframe example.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint