Added pause before checking pending state as in Chrome, it seems to refresh more slowly