Bạn có chắc chắn muốn xóa bài viết này không ?
Measure JS Parse times through the User Timing API
User Timing API https://w3c.github.io/user-timing/#dom-performance-mark
This approach can be affected on subsequent reloads by V8’s preparser. This could be worked around by appending a random string to the end of the script, something Nolan does in his optimize-js benchmarks.