Assuming onDeviceReadyFunctionA is an async function/returns a promise you could do:
document.addEventListener("deviceready", onDeviceReadyC, false);
function onDeviceReadyC() {
onDeviceReadyfunctionA().then(functionB)
}
Or you could do something similar with async/await:
async function onDeviceReady() {
await onDeviceReadyfunctionA()
functionB()
}
sideNote: I think this is the syntax you're looking for with functionB:
document.addEventListener("DOMContentLoaded", functionB);
function functionB(event) {
console.log(event)
}
If you want to use it inline, I'd use an arrow function:
document.addEventListener("DOMContentLoaded", (event) => {console.log(event)});