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

Understanding File Size and Loading

Understanding File Size and Loading

When you place content on a web page, you need to make considerations about how content loads, how much content you load, when it happens, and unloading content that you no longer need. When you build HTML websites, you have to be conscious about how much information you load onto a single page or whether the visitor has to wait a long time until the entire page loads. It's the same with a SWF file. If you try to load too much data into the SWF at the same time, your visitor has to wait a long time until the file loads.

Therefore, you should try to break up large files into separate files and load them in when necessary, or when the user requests them. For example, when you built the gallery in Chapter 10, you load images in from the server when the SWF file plays. Therefore, you don't need to store all the thumbnails in the SWF file and make the visitor wait while you load them before the gallery appears. Also, you load the full size image when the visitor requests to see it (when they click the thumbnail). Therefore, the visitor doesn't have to download all the full-size images unless they actually want to see the picture. It's a good idea to be considerate to your visitors in this way, particularly those with slow Internet connections who might not want to download a lot of data they're not interested in seeing. Loading content at runtime and upon visitor request also decreases the amount of bandwidth you use on your server.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint