mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.1K
active users

#CSSinJS

0 posts0 participants0 posts today

Avoid the temptation to do #CssInJs, avoid the temptation to make fancy Hamburger Menus, avoid the temptation to load content dynamically with fetch without also supporting loading ahead-of-time. Avoid the urge to require JS form validation, avoid the urge to use JS to negotiate a form's endpoint. Avoid the urge to do anything pointlessly fancy just to read a fricken news article. Establish ways to circumvent inhuman agents without script access

Whichever to blame:

- #NextJS is good in loading CSS in the wrong order, and having a mismatch between development and production.

- #CSSinJS is great for creating CSS loading order issues for frameworks.

These issues happen particularly easily if you maintain library as a fully separate project from the consuming apps.

Just being happy of the decision to start moving much more of our stuff to global #CSS earlier this year.

CSS layers is another solution to fix this, but will need work.

Анатомия StyleX

Hello world! По данным 2023 JavaScript Rising Stars библиотека StyleX заняла второе место в разделе Styling / CSS in JS (первое место вполне ожидаемо занял TailwindCSS ). stylex — это решение CSS в JS от Facebook , которое недавно стало открытым и быстро набрало популярность (на сегодняшний день у библиотеки 7500 звезд на Github ). Это обусловлено ее легковесностью, производительностью и небольшим размером итоговой таблицы стилей. В этой статье мы разберемся, как stylex работает. Но давайте начнем с примера ее использования.

habr.com/ru/companies/timeweb/

ХабрАнатомия StyleXHello world! По данным 2023 JavaScript Rising Stars библиотека StyleX заняла второе место в разделе Styling / CSS in JS (первое место вполне ожидаемо занял TailwindCSS ). stylex — это решение CSS в JS...