4 ms·
Some of the Bootstrap v3 changes, like using class="glyphicon glyphicon-..." vs. just "icon-..." are things that seem inferior from a pure HTML standpoint, but
by hannibalhorn 13y ago
Some of the Bootstrap v3 changes, like using class="glyphicon glyphicon-..." vs. just "icon-..." are things that seem inferior from a pure HTML standpoint, but were motivated by performance differences, especially on mobile devices. There's some hard learned lessons in the existing frameworks that shouldn't be thrown away lightly. (In static site it may just be a search & replace to change, but in a single page app such things could be much more complicated to change after the fact...)
- ritchiea 13y agoCan you elaborate on the difference between using icon and glyphicon? What motivated that change?
- andandand 13y agoPerformance wise it's more efficient using a base class (.glyphicon) and a modifier class (.glyphicon-adjust) instead of applying base styles with a pattern ([class^="icon-"]). Read about the other motivations for the change here: https://github.com/twbs/bootstrap/pull/6342 https://github.com/twbs/bootstrap/pull/6342