Skip to content

Instantly share code, notes, and snippets.

Geoff Blair geoffb

Block or report user

Report or block geoffb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mrdoob / gist:5245098
Created Mar 26, 2013
Avoiding huge delta times when switching tabs.
View gist:5245098
// firefox
document.addEventListener( 'visibilitychange', function ( event ) {
if ( document.hidden === false ) {
lastTime =;
You can’t perform that action at this time.