Line | |
---|
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
---|
2 | "http://www.w3.org/TR/html4/strict.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Testing dojo.addOnLoad()</title> |
---|
6 | <script type="text/javascript" src="../../../dojo.js"></script> |
---|
7 | <script type="text/javascript"> |
---|
8 | dojo.addOnLoad(function(){ |
---|
9 | console.log("addOnLoad(func) works"); |
---|
10 | }); |
---|
11 | // to test fastback, uncomment the next block and watch your server |
---|
12 | // logs vs. with this block commented out. Browsers that support |
---|
13 | // fastback should not re-request the resources when this block is |
---|
14 | // commented it but will do so when addOnUnload is firing |
---|
15 | /* |
---|
16 | dojo.addOnUnLoad(function(){ |
---|
17 | console.log("addOnUnLoad(func) works"); |
---|
18 | }); |
---|
19 | */ |
---|
20 | </script> |
---|
21 | </head> |
---|
22 | <body> |
---|
23 | <h1>Testing dojo.addOnLoad() to determine if fastback is working</h1> |
---|
24 | <p> |
---|
25 | click one of the links below to try it out and then hit your back |
---|
26 | button. Watch your server logs to see what's going on and view |
---|
27 | source to understand the test. |
---|
28 | </p> |
---|
29 | <a href="http://dojotoolkit.org">The Dojo Toolkit</a><br> |
---|
30 | <a href="http://dojocampus.org">Dojo Campus</a><br> |
---|
31 | <a href="http://google.com">Google</a><br> |
---|
32 | </body> |
---|
33 | </html> |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.