We are going to go over the tools and techniques used to make Mockingbird custom websites and how it helps us achieve our technical metrics and goals. We are constantly researching and trying to improve our build process. As more techniques and tools come out, we start learning how to incorporate them into our process.
What are our goals?
- Site Speed – we aim for all websites to load 3s or below (without third party scripts)
- Accessibility – We clear the AA Level of the Web Content Accessibility Guidelines
- Sexy and clean – sometimes, clients decide to leave us. When they do, we want to make sure whoever takes a look under the hood of the theme can easily do what they need to do.
What theme are we using?
- Sage 9 Theme – The sage theme comes with a lot of tools baked in for advanced WordPress development.
- Blade Templating Engine – stay DRY (don’t repeat yourself) by using Blade templates which makes it easy to organize code so developers can quickly find what they need and prevent unneeded code bloat.
- Automatically optimize theme images – all image files within the theme get compressed and minified for production.
- Tailwind CSS – the never ending debate of CSS structure and conventions can be tiresome. After some long consideration, we landed on tailwind, which is a utility first approach to writing CSS.
- We don’t have to think of clever names for classes
- Easier to scale vs other methodologies where you can easily repeat yourself such as adding borders or shadows to elements.
- Blade SVG – a way to easily incorporate SVG files into the website.
- Purge CSS – we configure a script to run throughout the site to purge all the extra CSS classes that aren’t being used, therefor reducing the file size.
- Lazyloading – we have created a custom implementation to enable lazy loading so pictures only load when they are needed.
- WP-CLI – installed on our local environments and hosting to easily manage things or run scripts on our projects.
What plugins do we use?
- Soil – cleans up all the extra junk WP likes to add to websites when rendering.
- Advanced Custom Fields – this is the only way to easily extend your WordPress customization.
- Query Monitor – used during development only so we can watch our calls to the database and see anything that is being resource intensive.
What tools are used in QA?
We want to measure how we are doing with everything above so we use a few different tools to measure.