Thank Ahmad for responding. I have a MasterPage.js that executes before any page loads. After login lightbox, this error is coming even before first line of MasterPage.js is executed.
I shared the snapshot of browse debugging. Let me know if there is anything in particular you want to check out and share with you.