开发者

Which swfobject.js file?

开发者 https://www.devze.com 2023-01-22 03:45 出处:网络
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开发

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?


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"


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

0

精彩评论

暂无评论...
验证码 换一张
取 消