2 ms·
Depending on what browsers you're supports it's probably far easier to use generated content (:before, :after). Maybe combined with calc or CSS expressions.
by kwamenum86 14y ago
Depending on what browsers you're supports it's probably far easier to use generated content (:before, :after). Maybe combined with calc or CSS expressions.
- rthprog 14y agoSure, but it's hard to get a variety of content in that way. If you have a paragraph that begins with lorem ipsum over and over again, you'll quickly notice.
- taitems 14y agoThen add some :nth-of-type() wizardry to it.
- rthprog 14y agoGood point. While there are some situations where that makes more sense, doing that for things like paragraphs is kind of silly - you're just moving junk copy to your CSS. You either have a giant CSS file, or some rather repetitive paragraphs.
- taitems 14y agoWell then you set your range to repeat fairly often. The issue at hand is repetition of paragraphs that start with "Lorem ipsum". All you have to do is break the repetition enough for the eye to be fooled. And in regards to CSS, I'd argue it's probably even smaller to include fixie.css than fixie.js, and it would be non-blocking.
- deleted 14y ago[deleted]