Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

base.js performance assignment forces IE and Safari to use fallback #27

@GoogleCodeExporter

Description

@GoogleCodeExporter
In base.js there is `var performance = performance || {};`. In IE and Safari 
the `var performance` is initialized as `undefined` which overwrites the 
built-in `performance` object and causes them to use the `Date.now` fallback 
which can cost them on the benchmark. A way to avoid this is to do a simple 
`typeof` check. `if (typeof performance == 'undefined') performance = {};`.

Original issue reported on code.google.com by John.Dav...@gmail.com on 30 Oct 2014 at 10:18

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions