Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created April 20, 2011 08:20
Show Gist options
  • Save tony1223/930706 to your computer and use it in GitHub Desktop.
Save tony1223/930706 to your computer and use it in GitHub Desktop.
config in zk.xml
<device-config>
<device-type>ajax</device-type>
<embed><![CDATA[
<script type="text/javascript">
(function(ozks){
window.zkx = function(){
var d = new Date();
ozks.apply(zk,arguments);
zk.afterMount(function(){
zk.log("zkx:"+(new Date().getTime() - d.getTime()) +"ms");
});
}
})(zkx);
(function(ozks){
zAu._doCmds = function(){
var d = new Date();
ozks.apply(zAu,arguments);
zk.afterMount(function(){
zk.log("zkmount:"+(new Date().getTime() - d.getTime()) +"ms");
});
}
})(zAu._doCmds);
</script>
]]></embed>
</device-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment