Added check if the link is from an anchor (a href) or, say, to a
stylesheet (link href)