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?