Amazon.co.uk Widgets

Wind turbines on the mountain

Bootstrap

Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. Bootstrap is released under the MIT License.

Joomla 4.0 has been released to production

Joomla! is a Content Management System (CMS) which enables you to build websites and powerful online applications. Joomla! is free and Open Source software distributed under the GNU General Public License version 2 or later.

Traditionally and as a matter of good governance of complex software, no breaking changes are made after beta. Joomla 4 in beta, was using Bootstrap 4.x, and the product leadership team decided to break that norm by announcing that Joomla! 4.0 will ship with Bootstrap 5 in a News article on 22 January 2021. That was quite a decision. Lets explore it and explain why was the right one.

Bootstrap Logo

TL:DR It It is the right decision!

Bootstrap 5.0 release status

Get Bootstrap 5.0.

Bootstrap 5.0.0 was released in May 2021, which you can confirm from their release page on GitHub.

Migrating to Bootstrap 5.0.

Joomla 4.0 release status

Joomla Project

Joomla! 4.0 was released in August 2021 meeting the goal set in the project roadmap.

What is new in Bootstrap 5.0

Bootstrap 5 is quite an update to the Bootstrap framework. Bootstrap 5 no longer depends on jQuery and drops support completely for Internet Explorer in the name of performance, fewer dependencies, and better API's for developers.

  • No support for Internet Explorer — Support for Internet Explorer formally ended in November 2020. It is out of scope.
  • No dependency on jQuery — This is "one of the largest changes to the framework in years and means projects built on Bootstrap 5 will be significantly lighter on file size and page load moving forward." Joomla 4 will still ship with an official version of jQuery though, for those that need it.
  • JavaScript changes — Changes and enhancements to JavaScript for code quality.
  • New Buttons — HTML and CSS only approach to toggle states. Now toggle buttons are powered by checkboxes and radio buttons and are much more reliable.
  • CSS custom properties — In a handful of components and layout options in 5.0 with more usage expected in components like buttons in the near future.
  • Customisation — Themes, customisation and extension of Bootstrap, global options, a colour system and more.
  • New Forms — Form control stykes, layout options and custom components overhauled with a custom appearance to unify style and behaviours across OS and browser.
  • New Utilities API — Aimed at those who build on Bootstrap via the source files. Necessitates some former utilities be reassigned as "helpers".

Considerations for Joomla and the community regarding Bootstrap 5.0 for Joomla 4.0

Not fumbling the Bootstrap ball

Without wishing to dwell on the past and several rocky major version upgrades for Joomla, I'll just say that Joomla 3.0 stumbled over integrating Bootstrap. I thought at the time that it was a brilliant decision to use the Bootstrap framework in Joomla. Arguably it saved the Joomla project from becoming a backwater. It certainly made me stay with Joomla. Bootstrap was fresh and the most popular HTML, CSS and JavaScript framework in the world, and was of course Open Source. But Joomla 3.0 shipped with Bootstrap 2.x just as Bootstrap 3.x was emerging. It became quite a nightmare especially for extension and template providers who had to find solutions for less technical end users otherwise they would face endless support issues. The Joomla project has learned and has not repeated this mis-step.

Not becoming a death march project

Death marches - are software projects that are destined for failure usually as a result of unrealistic or overly optimistic expectations in scheduling or feature scope, and often include lack of appropriate documentation or relevant training and outside expertise that would be needed to accomplish the task successfully.

Joomla 4.0 has been in gestation for years. It needs to ship as stable production software. The only way to ship software is to stop adding features, and to focus on quality and performance of what you have. Optimistic scheduling of major feature changes can cause drops in quality and burn out in development teams. The convention is that once you enter beta there will be no more changes, just fixes to what you have. Making a change like this, no matter how much you might wish for it to be easy, carries technical risk. Technical risk implies slipping timescales. And, the Bootstrap framework is in beta itself, so the risk was that the Joomla project would be a hostage to the dependency of Bootstrap 5.0 making a stable production release. As it happens Bootstrap 5.0 is released and so is Joomla 4.0 so this is no longer a risk.

Needs to carry the community with the decision

It is one thing to make a decision for all the right reasons. It is quite another to carry the community along and gain their support. The discussion on GitHub Replace Bootstrap 4 with Bootstrap 5 #31765 was lively.

The default front and back end templates must be well documented examples of Bootstrap 5.0

The first experience with a CMS like Joomla counts. Lots and lots of internal project and client proof of concept sites are based on the template that ships with Joomla. So a major effort needs to be undertaken to make the Cassiopeia and Atul templates shine, and to fully document them. Joomla's documentation is woefully out of date in places. We can all help here and I've made it a 2021 goal for me to do more to help. Hopefully, in the spirit of the templates exemplifying best practice, there will be no jQuery requirement in the official templates.

Internet Explorer is dead, but "enterprises"

Some enterprise customers, particularly in government, healthcare and education will have huge issues decomissioning Internet Explorer from their Windows based computers now that it is no longer supported, and this may be a pressure for keeping it alive in your projects. Resist it. It surely is not your issue. To me, no longer supported means that there is no longer a requirement for anyone to test with it at all. It is simply out of scope.

Developers and the technically minded know that Internet Explorer is dead. A draft obituary appeared in the article The perils of using Internet Explorer as your default browser. Support formally ended in November 2020 and Microsoft Teams stopped supporting it at that point. There is no development of features for Internet Explorer going on and Joomla 4 will not be able to support Internet Explorer, by virtue of the decision to use Bootstrap 5 which does not support Internet Explorer.

Clients, or perhaps senior managers might pressure people to support Internet Explorer. That is understandable for people who may not be well versed in current browser technologies. Refer them to information to support the collapse in market share of Internet Explorer and point out that it will effectively be moot when the remaining Office 365 applications end support in August 2021, just in time for the release of Joomla 4.

Joomla must ship stable software, based on stable frameworks

To my mind, it is quite OK to have a beta release with a beta framework and even at this late stage to make this change. The decision has long term implications and I support it. It would not be OK to me though to say that a stable production release of Joomla can be made with a beta level framework underpinning it. Fortunately Bootstrap 5.0 is in production so the production department did not have to wrestle with potentially shipping with a tested beta release. I may be an old fashioned product manager, and I am certainly old, and have been managing complex software for decades, but this just isn't something I could have supported. I realise it is entirely the decision of the production department in the Joomla project, but If they ended up having to do it, for whatever reason, I would have had to wait until Bootstrap 5 was released as stable and for the inevitable Joomla point release after that before deploying any Joomla 4 sites for clients to production. As it happens this is no longer relevant because Bootstrap 5.0 is in production and so is Joomla 4.

Conclusions — Seize the moment Joomla 4

I've been backlogging features for clients with the tags like 'requires Joomla4' for at least two years. I can't wait to improve my applications built on Joomla with Joomla 4. I am fully endorsed the Bootstrap 5 decision and can't wait to build on it!


ezone is not affiliated with or endorsed by The Joomla! Project™ or Open Source Matters. The Joomla!® name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.