mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
19 lines
523 B
HTML
19 lines
523 B
HTML
<body>
|
|
<script>
|
|
function request(type) {
|
|
var client = new XMLHttpRequest,
|
|
identifier = type == "tag" ? Math.random() : new Date().toGMTString(),
|
|
url = "fake_responses.py?" + type + "=" + identifier
|
|
client.open("GET", url, false)
|
|
client.send(null)
|
|
client.open("GET", url, false)
|
|
client.setRequestHeader(type == "tag" ? "If-None-Match" : "If-Modified-Since", identifier)
|
|
client.send(null)
|
|
}
|
|
|
|
if(window.parent.setup_iframe) {
|
|
window.parent.setup_iframe();
|
|
request("tag");
|
|
}
|
|
</script>
|
|
</body>
|