Here is a short story about a small trick that can help us separate constraints, optimize performance, and have a cool way to insert styles into our pages. Anyone who has created a website knows there are many ways to include CSS, so let's talk about the main ones. ## Inline Style This type of CSS insertion is very popular due to new trends in JS frameworks that use "CSS in JS". This can be done within the style attribute: ```html
``` This is great if you have preprocessors to optimize the used CSS or something that can help reduce the large content of the main file. Because the request made through the server will be increasingly larger and must be downloaded in a single file, it will have a significant negative impact on LCP (Largest Contentful Paint) but also a good impact on CLS (Cumulative Layout Shift), because rendering will show things as they will appear, based on the CSS cascade system and the CSSOM. ## [**CSS Object Model**](https://developer.mozilla.org/es/docs/Web/API/CSS_Object_Model#:~:text=El%20Modelo%20de%20objetos%20CSS,de%20CSS%20de%20forma%20din%C3%A1mica) > **With Vanilla CSS** it is impossible to apply inline media queries. ## Internal Styles Another way to include CSS within the same HTML is with a `