Making JavaScript and CSS slightly smaller
I save space by setting a variable called '_' to 'this' at the start of a function that uses 'this' a lot.
Saying 'background: aqua' is shorter than saying 'background-color: aqua'.
I save space by setting a variable called '_' to 'this' at the start of a function that uses 'this' a lot.
Saying 'background: aqua' is shorter than saying 'background-color: aqua'.
Comments
Post a Comment