I\'ve been having trouble getting Google Maps API v3 to update correctly. I\'ve got a javascript timer running that should be refreshing the traffic layer periodic
Sergio's answer is still the correct one but I believe Google updated their API and URLs (a risk mentioned by a commenter).
The correct test would be now:
.... if (/googleapis.com\/maps\/vt\?pb=/.test(src)) { ...