How to enqueue assets only on queried pages, excluding the page being queried?

NOTE: This code is correct above is the solution I was looking for.

I just overlooked applying it to some scripts and so I thought it wasn’t working.

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