The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
If you check PageSpeed Insights the first thing that you’ll notice is that it takes a very long time before the server is even returning something (in my case 6.7 seconds, which should be under 600ms). So make sure your server is able to handle it.
Second, there is no caching for static files (img, js, css), meaning the visitor needs to retrieve those files at every request.
Pablo5
I also recommend taking a look at this section of the docs:
jamesjappy6
Deploy your site on vercel, or a VPS with cloudflare set to cache everything and you will see the difference.
Also your host API where you are serving the data, do you use any sort of caching for requests?
Also from the looks of it, you have not actually “built” the frontity server, you just ran frontity dev correct? Because there is no way your js payload is 21MB if you ran npx frontity build
Johan7
I had that issue as well on build (ran into a 50MB JS file), because I loaded all CSS, fonts and SVG images into JS
Until I found out about loadable and moving all assets out of JS (even though it’s somewhat recommended).
So it is possible, but also easy to fix. Although it might take a bit of tweaking on your server (apache/nginx configs).
1 Like
preetworks268
If the speed’s still not up to par even after removing code and Lazy Loading images, you can try:
Browser Caching: Let your website elements chill out on users’ devices, so they load faster on return visits.
Minify CSS and JavaScript: Squish 'em down for quicker loading.
CDN Magic: Go global with a CDN like RabbitLoader. It’ll speed things up by serving content from closer servers.
Check Server Response: If your server’s being sluggish, consider an upgrade.
Font Fun: Stick to fewer fonts and use speedy formats.
Cut the Requests: Keep those HTTP requests in check, fewer is better.
Mobile Matters: Make sure your mobile version is fast too.
Regularly test your speed using Google PageSpeed Insights or GTmetrix.
muhdnajeeb39
did you fixed. my files is 24mb payload i checked by hiding all pages and just show one compoenent it still shows 12 mb how can i reduce