+ 23

Break free from CSS prefix hell!

A script that lets you use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed. Add this script in HTML section. <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

2nd Nov 2017, 2:27 PM
Ranjan Bagri
Ranjan Bagri - avatar
15 Answers
+ 21
Thanks for the info. Let's hope all lazy people include this script if not WebKit prefix for android 4.4 or less.
2nd Nov 2017, 2:55 PM
Lord Krishna
Lord Krishna - avatar
+ 17
Thanks for the info😊😊
2nd Nov 2017, 3:13 PM
◀Yin▶
◀Yin▶ - avatar
2nd Nov 2017, 3:44 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 13
Thanks for this.
3rd Nov 2017, 4:43 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 13
@Sun Tzu Either you speedup page load or miss on some visitors. using CDN is not laziness there are benefits to it. about the security risks. they can be reduced by using a trusted CDN like google, using SRI. you can even make sure the resource was not tampered by checking it's integrity & cancel the script load. # the second answer says it better # https://security.stackexchange.com/questions/16797/what-are-the-security-risks-when-using-free-content-delivery-networks-cdns https://stackoverflow.com/questions/3489344/how-secure-are-cdns-for-delivering-jquery
4th Nov 2017, 6:53 AM
Lord Krishna
Lord Krishna - avatar
+ 11
@Sun Tzu according to your logic we shouldn't use any external library in our code because the owner of these library can change the source code any time. This way these things doesn't work. If they change something in the source code, they will release another version leaving the previous one intact.
4th Nov 2017, 11:51 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 10
Thanks man
2nd Nov 2017, 2:37 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 9
nice job 😁👍👌
2nd Nov 2017, 2:30 PM
NoxFly
NoxFly - avatar
+ 5
Thanks for sharing this! â˜ș
4th Nov 2017, 1:56 PM
Haris
Haris - avatar
+ 4
Thanks it will help a lot of people
4th Nov 2017, 11:33 AM
Î‘Î·Ï„ÎżÎčπe
Î‘Î·Ï„ÎżÎčπe - avatar
+ 4
I'm seeing a useful reason why I should and an argument why I shouldn't. I really want to.... Tzu brought up a good point.
5th Nov 2017, 4:45 AM
Rose Rend
Rose Rend - avatar
+ 3
NO - NO - NO : DO NOT RUN THIS . Importing javascript using an external link is never done because it's a huge security risk. The person running that website could change the code at any point to exploit your website and it's users. If you want to use the code, then download it to your computer, make sure the code is clean, and then upload the script to your own server. Edit: I'm seeing now that the original poster is a well standing community member. Still, he should know better. Don't uses the html code he gave you.
3rd Nov 2017, 11:00 PM
Sun Tzu
Sun Tzu - avatar
+ 3
Thank for the information
4th Nov 2017, 4:40 AM
Harsh
Harsh - avatar
+ 3
@Lord Krishna If the host website gets compromised (be it GitHub or whatever) then every server linking to that script can be compromised. If you're running this on a live website, you've given hackers another way in, and for what? Because you don't want to copy a file? Do whatever you want , idc.
4th Nov 2017, 6:22 AM
Sun Tzu
Sun Tzu - avatar