as per Terin, use (frame).on('load'..)