cssinjs / css-vendor

Runtime vendor prefixing based on feature detection.
MIT License
67 stars 24 forks source link

Better cache prefill #7

Closed cvle closed 7 years ago

cvle commented 7 years ago

To check current status of cache prefill open the following fiddle and check the console. https://jsfiddle.net/wikiwi/xodLuxpw/4/

The cache contains the desired prefill but additionally a lot of irrelevant keys and values making supported-property sometimes return a wrong result. In my case I was wondering why the property all was a supported property in IE, even though IE doesn't expose it anywhere in its API.

This PR simply prevents the irrelevant keys from being added to the cache, similar to this fiddle: https://jsfiddle.net/wikiwi/xodLuxpw/5/

kof commented 7 years ago

merged, thanks!