Eliminating duplicate browser refreshes