Lazy Loading swfobject.js
The SWFObject.js file can be lazy loaded.
If you intend to use Google's cached copy of SWFObject (highly recommended), you can also take advantage of Google's lazy loading tool.
Google's documentation can give you all the details, but the nitty-gritty is this:
- Load the
- Specify which Google Ajax API file you want to load (in this case SWFObject version 2.2)
- Optional: Specify a function to execute when the SWFObject file has been successfully loaded in your page
Other lazy loading techniques
Frankly, there are too many lazy loading techniques to mention. Excluding the Google example posted above, none are specific to SWFObject, and will work with just about any script file. Ajaxpatterns.org has a great overview of lazy loading.