Last Updated: February 25, 2016
·
1.283K
· jonabrams

No more CSS Prefixes

If you're like me and hate writing -webkit-this or -moz-that in your CSS, then I recommend you stick this in your <head>:

<script src="//cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

It will automatically add any needed CSS prefixes depending on the browser, nice!

More info here: http://leaverou.github.com/prefixfree/

3 Responses
Add your response

Well I never had to worry about vendor prefixes again since I moved to Less and Sass. It was 2 years ago ;)

over 1 year ago ·

It's nice to have options :)

over 1 year ago ·

autoprefixer does pretty much that without the need to make the end-user send an extra http request and waste some computing time. Still good to know I guess :p

over 1 year ago ·