Add jqr.beforeload and jqr.afterload events.