this post was submitted on 13 Mar 2024
104 points (92.6% liked)

Web Development

3439 readers
1 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

This study compares two websites with similar design: the commercial Spotlight template from developers of Tailwind vs the same site with semantic CSS.

you are viewing a single comment's thread
view the rest of the comments
[–] bonus_crab@lemmy.world 2 points 8 months ago (5 children)

Having used it in a major project its a shame that its so inefficient because the user experience really is much much better. It feels like a successor language to CSS because it fixed lots of unobvious and badly named attributes and makes lots of things just easier.

The code is more verbose but also you can completely understand how the page will look just by reading the html.

That said it makes sense the performance is so much worse, where you would have matched on one class for N styles you now match on N classes for N styles.

Theoretically its totally possible to do that matching at compile time and 'compile' the string of classes you wrote into individual ones per element for each combination used in the html though.

[–] Z4rK@lemmy.world 0 points 8 months ago (1 children)
[–] darkpanda@lemmy.ca 2 points 8 months ago

The performance improvements in v4 are for compilation times, not rendering.

load more comments (3 replies)