If materialized view doesn't refresh data on insert/update, this basically works similar to a cache.
Caching the front page, server side, instead of rendering it on every request would have given similar result -- my guess. Specially when the query was taking 900ms.