Hi, You mean to say it returns false as there is delay in loading website/image ? This will help you.
Reference1 Reference2