arielsalminen / feature.js

Feature.js is a fast, simple and lightweight browser feature detection library in 1kb.

Home Page:https://featurejs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Would using getters make it faster?

eorroe opened this issue · comments

I know the file is small and should be fast, perhaps I'm micro optimizing but Instead of running all the code right away would using getters make it faster, therefore only when each feature is checked:

if(feature.webGL) { // right here it'll run the getter instead of onload

}

Perhaps only do this if this file exceeds a certain file size?

we have a lot conversation about it here, #4

Just replied