Comcast / Surf-N-Perf

Micro-library for gathering web page performance data
http://comcast.github.io/Surf-N-Perf/
MIT License
90 stars 20 forks source link

Resource Timing: Accept resource or name as first argument #63

Closed JohnRiv closed 7 years ago

JohnRiv commented 7 years ago

It's possible you may have the resource already and just want to use the helper methods. In that case, it makes sense to pass the resource to the helper method instead of the name, so have the methods accept either.