Quick Start Labels
https://vanillawebdev.blogspot.com/search/label/coding-tips
Coding Tips
3
https://vanillawebdev.blogspot.com/search/label/project-setup
Project Setup
1
Reading List
https://jackwhiting.co.uk/posts/lazy-loading-vanilla-js-with-webpack-laravel-mix
https://medium.com/free-code-camp/reducing-css-bundle-size-70-by-cutting-the-class-names-and-using-scope-isolation-625440de600b
Libraries
https://github.com/verlok/vanilla-lazyload
Developer Resources
https://webpack.js.org/configuration/output/
https://web.dev/articles/preload-critical-assets
Reading List
https://www.codemzy.com/blog/how-to-name-webpack-chunk
How to name a webpack chunk (including split and common chunks)
Reading List
Sidebar Labels
https://vanillawebdev.blogspot.com/search/label/coding-tips
Coding Tips
3
https://vanillawebdev.blogspot.com/search/label/css-tips
CSS Tips
3
https://vanillawebdev.blogspot.com/search/label/project-setup
Project Setup
1
https://vanillawebdev.blogspot.com/2025/02/naming-async-function.html
https://vanillawebdev.blogspot.com/2025/01/css-classname-in-js.html
https://vanillawebdev.blogspot.com/
https://vanillawebdev.blogspot.com/2025/01/widget-elements-css.html
Thinking Elements as Widgets in CSS
January 22, 2025
2025
January
22
11:36 PM
If you haven't used one yet, try giving the .wg- class name prefix for elements that you see as a single entity, be it a button or a container. No styling should be added to elements without the .wg- prefix.
If you're styling a container, then you can start using a more general name for class names. With CSS nesting and the super class .wg-, you can worry less about conflicted class names.
.wg-btn-default {
/* ... */
}
.wg-btn-danger {
/* ... */
}
.wg-dialog-edit-activity {
& { /* ... */ }
.header { /* ... */ }
.content { /* ... */ }
}
.wg-dialog-settings {
& { /* ... */ }
.header { /* ... */ }
.content { /* ... */ }
}***
Trivia:
The
.wg-class prefix stands for widgets, a term for add-on elements in Google Blogger template.
https://vanillawebdev.blogspot.com/search/label/%40lvc
@lvc
https://vanillawebdev.blogspot.com/search/label/css-tips
CSS Tips
https://vanillawebdev.blogspot.com/2025/02/naming-async-function.html
https://vanillawebdev.blogspot.com/2025/01/css-classname-in-js.html
https://vanillawebdev.blogspot.com/