What you probably need is a caching plugin for WordPress. CDNs are useful to store “static” content like images, scripts, etc. Your WordPress posts and pages will load much faster if you use caching plugin.
Thread Starter
Dan14
(@dan14)
Thank you for your reply.
All my website with the exception of the page that has the tables load in 2.5 seconds on average and 5 seconds on mobile devices with a 3G network.
Even if I do cache that page it wont affect the first visit right? Ive been struggling with this for some time. The reason why it slows down the page is because I have many tables (over 50) and with hyperlinks inside and different font colors. This created over 5k DOM elements.
Is there way I can get get the CDN to cache the tables? I have the option to do a full site cache but I didnt do it because it can cause issues with WordPress.
What would be the best solution aside caching plugin? I have content for registered users and doing a cache creates conflicts.
-
This reply was modified 8 years, 7 months ago by
Dan14.
Well, it is possible to move the static HTML for that post to a CDN. Then make a custom template that loads that specific page from the CDN when displayed. That’s quite a bit of work and will have to be repeated every time you edit that specific page.
Thread Starter
Dan14
(@dan14)
Thank you. I know this is a bit off topic but it will serve other users that will read this in future and would like to have it implemented. Can you please specify what is the specific html content for the tables that I will have to move to the CDN?
About the custom template, are you referring to the database or something else?
Thanks in advance.
-
This reply was modified 8 years, 7 months ago by
Dan14.