"iframe" sitedown fallback via <object>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|<!-- so it turns out that the object tag can act like an iframe|
|but the cool thing is you can nest object tags inside eachother for a fallback path.|
|what this means is you can "objectframe" a site.. and if it fails.. (site down, offline, whatever).. it'll use the next one.|
|so you can objectframe the live site and fallback to a screenshot.|
|demo at : http://jsfiddle.net/paul/CY2FQ/1/|
|<!-- this could probably work in IE with some classid bullshit|
|also in this case there can be an ISP that intercepts your failed DNS (which fucks it up) but in most cases a site timeout wont trigger that so it'll be ok. :)|
Oct 13, 2010
i get my ISPs 404 page via OpenDNS in the Object - was i supposed to see your site?
Oct 13, 2010
fucking ISP hijax. :(
Dec 12, 2012
It should be noted that if you are using privacy extensions (like ScriptNo) those things referenced as "objects" will have to be whitelisted, just like you would have to white-list third-party cookies, tracking scripts and other off-site material.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment