Recently I upgraded jquery library to 3.5.1 after that document.ready() is not firing first In the ver 1.x it used to fire first.