I am interested in tips for optimizing WordPressās response times for the REST API and Frontity in general. This is because when pulling some pages of my testing environment through Google PageSpeed, Iām receiving messages about āReduce initial server response timeā.
Iām not sure if this problem stems from Vercel or from my WordPress installation, but it looks like installing a caching plugin for Rest responses (WP REST Cache) makes some difference.
When using Frontity, you donāt need a whole lot of functionality that WordPress loads by default. Iām reading that WordPress loads plugins and themes even when doing a request to the REST API. So maybe some parts shouldnāt load? But of course you want to keep the ability to use the back-end for managing content, and the reponse of the REST API shouldnāt be altered by taking theme and plugins out of useā¦ I found this plugin (Plugin Load Filter) which provides an interface for disabling any of your plugins for (among others) the REST API.
Iāve also read about shortinit
and tried to implement that in my testing environment. But I canāt really find a good to way to implement it.
How did Frontity itself optimize loading times on the WordPress side?