Closed groovecoder closed 8 years ago
:+1: I dig it, and it really doesn't seem much different, perf-wise.. might even be better avoiding all those repeated require
calls.
Thanks!
I'm gonna add you as a contributor, as per the OPEN open source guidelines: https://github.com/anandthakker/doiuse/blob/master/CONTRIBUTING.md
I don't expect this should be merged lightly ...
I changed the code to load the entire
fulldata-json/data-1.0.js
data fromcaniuse-db
, so that thedoiuse
can bebrowserify
'ed. (browserify
doesn't do anything with therequire
call that includes the dynamicfeature
name.This means the script will load the 935KB
.json
file instead of individually loading up to 326 4KB-7KB.json
files fromfeatures-json/
. I'm not sure which approach is better performance-wise, or if you care enough about it to run some kind of benchmark between them?