JS behavior differs depending on page tree [closed]

I fixed it by including the JS files in the header, so there’s an error in another plugin’s JS that’s causing the issue.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)