Brett
Brett

Reputation: 20049

Which swfobject.js file?

I downloaded SWFObject & it came with several files it has one swfobject.js file in the root dir & another in the "src" directory. The file size differs so I'm wondering which one I have to include in my header?

Upvotes: 1

Views: 4705

Answers (2)

pipwerks
pipwerks

Reputation: 4581

You can use either one. The swfobject.js file in the root is the minified (compressed) version, which has a smaller file size optimized for fast downloads. The tradeoff is that it isn't human-readable. The other swfobject.js file (/src/swfobject.js) is un-compressed and human readable in case you want to make modifications.

A third option is to use the Google-hosted copy; all you'd need to do is use the Google URL src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" instead of the local file src="swfobject.js"

Upvotes: 2

ford
ford

Reputation: 1887

This file is generally generated automatically by Adobe Flash. Have you tried using that one?

Upvotes: 0

Related Questions