s

how to check if KnockoutJS is loaded edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 27 January 2021 | 1683

check if KnockoutJS is loaded or installed. You can check if knockout js is loaded by opening chrome developer tools and typing window.ko in the console tab. It will return an undefined if KnockoutJS is not loaded. If KnockoutJS is loaded it will return the version number and other details as shown below.

Javascript Code

You can also use the below code to check if Knockout Js is loaded.

(window.ko == undefined ?  console.log("KnockoutJS is not loaded") : console.log("KnockoutJS is loaded"))