3 ms·
I agree but still use Bootstrap. There's too much well-thought out stuff to ignore or attempt to reinvent. I don't include bootstrap.min.css though. I wrote a
by oliwarner 10y ago
I agree but still use Bootstrap. There's too much well-thought out stuff to ignore or attempt to reinvent.
I don't include bootstrap.min.css though. I wrote a custom LESS (I'm still using v3) stylesheet to replace bootstrap.less, which pulls in just the bits I want. I also use this to customise and theme the whole thing.
I also don't use Bootstrap's classes in my HTML. These are replaced in my custom version by semantic and descriptive things that work very well on a site-by-site basis for keeping markup low.
And this can be kept just-about-separate-enough from Bootstrap to make upgrading it not too traumatic, as long as you stay within the major version and don't edit the original files (just override or replace them).
Wrapping up just the bits of the Bootstrap JS is the harder challenge IMO but this can also be done. I have a plaintext file that lists the files (in order) that I just cat together, minimise and compress.
Here's my personal blog as an example: https://thepcspy.com/ https://thepcspy.com/