simplifies lazy load by setting a boolean variable instead of checking for a class in the html doc