Placing the SWFObject library/calls within the body tag will change the load / execution order of the page.
Once the user has loaded the swfobject.js file from one page, it will be cached, so it does not matter if they visit another page with the include. Considering most Ajax/js libraries are 100kb+, loading the SWFObject code once @ < 10kb isn't a big deal is it? Aran -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of kenja Sent: Wednesday, 3 December 2008 4:48 AM To: SWFObject Subject: Must the swfobject.js be defined in the head tag? I'm installing this on a CMS system and the head of the document is controlled by the CMS. Instead of forcing every page on the website to download swfobject.js, I want to only include it on pages that use video. I can hard code it into the head tags, but it will require a conditional statement that needs to be executed for every page that is loaded. Is it possible to do the swfobject include from within the body tags without causing problems? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
