test if the element is visible before loading #52

possible solution to #52

still undecided on if this should be merged. we should probably discuss it