Last Updated: February 25, 2016
·
1.728K
· ala_747

Epic simple way of quickly swaping two chunks of CSS or JS

/**/
[first chunk]
/*/
[second chunk]
/**/

Adding a space before the second forward slash does the trick!

As seen on: http://jsfiddle.net/csswizardry/Kny3Q/

2 Responses
Add your response

This is AMAZING!!!

over 1 year ago ·

Nice one!

over 1 year ago ·

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside