Updated
This commit is contained in:
34
master/examples/fastbackTest.html
Normal file
34
master/examples/fastbackTest.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Testing dojo.addOnLoad()</title>
|
||||
<script type="text/javascript" src="../../../dojo.js"></script>
|
||||
<script type="text/javascript">
|
||||
dojo.addOnLoad(function(){
|
||||
console.log("addOnLoad(func) works");
|
||||
});
|
||||
// to test fastback, uncomment the next block and watch your server
|
||||
// logs vs. with this block commented out. Browsers that support
|
||||
// fastback should not re-request the resources when this block is
|
||||
// commented it but will do so when addOnUnload is firing
|
||||
/*
|
||||
dojo.addOnUnLoad(function(){
|
||||
console.log("addOnUnLoad(func) works");
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Testing dojo.addOnLoad() to determine if fastback is working</h1>
|
||||
<p>
|
||||
click one of the links below to try it out and then hit your back
|
||||
button. Watch your server logs to see what's going on and view
|
||||
source to understand the test.
|
||||
</p>
|
||||
<a href="http://dojotoolkit.org">The Dojo Toolkit</a><br>
|
||||
<a href="http://dojocampus.org">Dojo Campus</a><br>
|
||||
<a href="http://google.com">Google</a><br>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user