define('DISALLOW_FILE_EDIT', true);{"id":11,"date":"2007-07-13T17:50:22","date_gmt":"2007-07-13T22:50:22","guid":{"rendered":"http:\/\/www.unfocus.com\/projects\/index.php\/2007\/07\/13\/object-patent-magic-and-a-note-about-javascript-defer\/"},"modified":"2007-08-06T01:20:02","modified_gmt":"2007-08-06T06:20:02","slug":"object-patent-magic-and-a-note-about-javascript-defer","status":"publish","type":"post","link":"http:\/\/www.unfocus.com\/2007\/07\/13\/object-patent-magic-and-a-note-about-javascript-defer\/","title":{"rendered":"Object Patent Magic and a note about javascript defer"},"content":{"rendered":"
I’ve updated Object Patent Magic. It was broken for a while. It seems that doing the swap using a deferred script (which loads sooner than window.onload does) causes some problems with if you interrupt already loading content, then try to load it again (which is exactly what Patent Magic for swfs and some PNG transparency fixes are doing when you use a deferred script).<\/p>\n
So that leaves us with some caveats; Using this method hides the movies until the page’s onload event fires, which includes downloading swf files (I did some testing to make sure it is not actually running the swf, and it doesn’t appear to be, as long as the object’s display style is set to “none” – if anyone could help me confirm that, that’d be awesome.). So as with the satay method, I’d recommend using a shim swf that can load itself quickly, then load the main swf file through that. This actually provides a nice opportunity for in swf flash version detection and upgrade prompting using Express Install.<\/p>\n
Anyway, it’s updated and posted, so if anyone would like to give it a try, feel free.<\/a><\/p>\n The PatentMagic demo page<\/a> is fully validating XHTML 1.1 as a bonus (using satay)<\/p>\n","protected":false},"excerpt":{"rendered":" I’ve updated Object Patent Magic. It was broken for a while. It seems that doing the swap using a deferred script (which loads sooner than window.onload does) causes some problems with if you interrupt already loading content, then try to load it again (which is exactly what Patent Magic for swfs and some PNG transparency … Continue reading “Object Patent Magic and a note about javascript defer”<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.unfocus.com\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}