Detect page focus using document properties
committing