Moodle Theme Performance Guide: CSS, Images and Caching
All of our Moodle themes are now fully compatible with Moodle 5.3

Moodle Theme Performance Guide: CSS, Images, Caching and Core Web Vitals

A slow Moodle page can come from the server, database, plugins, network or the theme. To improve theme performance, measure representative pages first, then investigate CSS, JavaScript, images, fonts and third-party requests without assuming that appearance is the only cause.

Establish a useful baseline

Test a public landing page, login, dashboard and a course with real content. Record the device, browser, connection, page, user role and whether caches are warm. Compare results across several runs. Browser developer tools and PageSpeed Insights can show where a page spends time; public tools may not reach pages behind login.

Core Web Vitals describe loading, visual stability and responsiveness, but lab measurements and real-user data answer different questions. Consult web.dev’s Core Web Vitals guide and evaluate authenticated learning workflows as well as public pages.

Check server response before changing the theme

If the first response is slow across many pages, examine hosting resources, database queries, scheduled tasks and cache configuration with your administrator. A theme change cannot compensate for an overloaded server or an external integration waiting on a remote service. Our slow Moodle diagnosis guide covers these broader causes.

Audit images and media

Find oversized banners and course thumbnails in the network panel. Export images at an appropriate display size and compression level; check visual quality and supply useful alternative text. Avoid forcing visitors to download a desktop-sized decorative image when a smaller asset will do. Video and third-party embeds may add their own requests and should be tested individually.

Review CSS and JavaScript

List the CSS and JavaScript delivered on the slow page, including assets from plugins and third-party widgets. Remove unused features only when their owner confirms they are unnecessary. In staging, compare waterfall traces after each change and test menus, drawers, quizzes and forms. Minification or deferral can break dependent scripts, so validate behaviour rather than assuming a smaller file is always safer.

Limit fonts and external requests

Each font family and weight can add downloads. Use only the styles you need and check the fallback while fonts load. Review externally hosted resources for performance, privacy and availability. Test layout shifts around headings and navigation after changing typography.

Use caching carefully

Confirm that Moodle’s caches, PHP OPcache and any reverse proxy are configured for your environment. Moodle’s theme designer mode is useful during development but should be reviewed for production. Purging caches can temporarily increase server work; use a planned procedure and verify the result rather than purging repeatedly. See our theme cache guide.

Retest actual learning workflows

After each change, compare the same pages and conditions. Check course navigation, assignment submission, grading, keyboard focus, RTL layouts and mobile controls. Keep a rollback route and record which change produced which result. A fast homepage matters less if a learner cannot complete an activity.

Evaluate your theme

When choosing a Moodle theme, ask the vendor which Moodle versions and common page types they test. Try a live demo with your own device and evaluate it alongside your plugins and content. Explore Almond for Moodle 5.3 or open the live demo.

Leave a Reply

Your email address will not be published. Required fields are marked *