Using certain JS files for certain html files?

Hello, I want to be able to use certain JS files for certain HTML files.
I’ve got the problem of my login.html page’s script ‘request_login.js’ being on every other page as well, and no way to disable it without disabling it globally.

I can’t figure out how I disable it for that file alone, so I was hoping I could find out since Its such an incredibly basic feature. Surely I’ve gotta be missing something ^^’

Any help appreciated <3

Right Click on your request_login.js in your design panel and select visibility

In the Asset Visibility modal select “Show only on these pages”

Then tick your login.html page