Isn't this a heuristic implemented by browsers already these days?