jQuery/JavaScript works differently in production and non-production modes

Hello guys! We are facing a little trouble when loading jQuery/javascript in production mode.

Basically, when user first logs in, a dialog will pop-up with a brief quick start. The animations within this dialog are controlled through jQuery and JS. However, when in production mode, the sequence of the loading of files are different.

Non-production mode:

Production mode: