Adds a trigger event on page load.