You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
<!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> |
|
|
|
|