lib: add 'load' event