The ping API will return true if CometChat has been loaded.
jqcc.cometchat.ping()
document.onload = function() {
testload();
}
function testload(data) {
var loaded = 0;
try {
loaded = jqcc.cometchat.ping();
} catch (err) {
}
if (loaded) {
alert('CometChat has loaded');
}
}
Not finding what you need?
The CometChat team is here to help!