Event listener is removed when the Collection page data is updated

I have event listener loaded into the Collection page triggered by “DOMContentLoaded”. However they are all removed when a filter that is applied to a Collection is toggled ie the data in the page loads.

Does anyone know what could be causing this?

I guess the elements you attach your event listener to are replaced?

Listen for events on some wrapper, or body?