Zend certified PHP/Magento developer

Magento 2 issue with merge JS ( Some JS only work with hard refresh after enable marge JS)

I am facing one issue when I enable merge JS see below details.

I have one JavaScript which is adding button into the webpage, this script is working fine with default loading of the JavaScript but when I enable merge
JS and set production mode then this JS is only work while I hard refresh page (Ctrl + Shift + R).

Thanks in advance.