I am using Moodle 3.7.1 with php 7.2.24 (via php-fpm) on Apache 2.4.6. We are getting reports of, and I can sometimes reproduce, instances where the page loads but appears to only load the HTML - I'm attaching 2 screenshots of what is actually loaded on different pages when this occurs.
This started happening when we upgraded Moodle, which coincided with a php version upgrade. The theme we are using is a child of the Herald Boost and Boost themes
$THEME->parents = ['herald_boost', 'boost'];
Here is a diff between herald_boost/config.php and spark_learn/config.php: https://www.diffchecker.com/jWLRCYdQ
If I purge cache the issues goes away. There are no console errors (e.g. 404, 500) and no php/httpd errors logged either. In some instances, if a user reports it, I can open in a browser I rarely use and get the same result, but in my day-to-day browser I can continue to use the site normally. Again, purging cache fixes the issue for everyone.
Obviously I'm unable to reliably reproduce so I'm reaching out in the hopes someone else with more Moodle experience can point me in the right direction.