Forum Moderators: not2easy
.foo,
#bar,
[onClick] { cursor: pointer } .foo,
#bar,
[onClick] { cursor: pointer }
.textCursor { cursor: text }
<div class="textCursor" onClick="blah()"></div> .foo,
#bar,
[onClick] *:not(.textCursor) { cursor: pointer }
<div class="textCursor" onClick="blah()"></div> Does having another one in the file make a difference, or is it one of those things where, if I've used one then I might as well use 50?
.foo,
#bar,
[onClick] { cursor: pointer }
[onClick].textCursor { cursor: text }
@robzilla, I know you laugh at my mere 11 bytes, but I've spent some time shaving bytes here and there and increased my load time by about 500ms!
But I'm mainly asking these questions for my own long term education; eg, whether I should rely more on pseudoclasses, and at what point the increase in file size offsets any performance loss from them.