WP Rocket settings for Zenbusiness
WP Rocket is a plugin that enables caching on WordPress websites with the goal of improving their loading times.
Every site has a different theme, a different set of plugins, and different content. So the best settings will vary from site to site. There are the best settings for Zenbusiness.
Step 1. Basic cache option.
- Mobile Cache.
Let's enable caching for mobile devices. Usually the term “mobile device” would be used for smartphones as well as tablets, and every screen size in between. WP Rocket, by default, applies the term “mobile” to phones only. It does not consider tablets as “mobile” in the context of page caching. Mobile phones get detected by HTTP user agent.
Let's enable separate cache files for mobile devices. When this option is enabled, WP Rocket will create a dedicated cache file for mobile devices for every document that gets cached. As a result, WP Rocket will serve an entirely different cache file to mobile phones than to tablets, or desktop computers.
Step 2. File Optimization.
- CSS files.
Let's enable minify CSS files. Minification is the process of removing white space and comments from code. This makes the file size smaller, therefore faster to download. Minification alone does not reduce the number of HTTP requests on your site.
Let's enable combine CSS files. When Combine CSS is enabled, all the CSS files are combined into 1 single CSS file, therefore reducing the number of HTTP requests on your site.
Let's enable optimize CSS delivery. The Optimize CSS Delivery option addresses the PageSpeed recommendation: Eliminate render-blocking resources. It accomplishes this by automatically:
a) Generating the critical path CSS needed to render the visible part of your website.
b) Loading all the other CSS files asynchronously, that is deferred, without render-blocking.
Also we generated Fallback critical CSS by PEGASAAS .
- JavaScript files.
Let's enable Remove jQuery Migrate. jQuery Migrate is not needed for Zenbusiness and is therefore adding one extra HTTP request, unnecessarily. This option prevents the above file from loading.
Let's enable Minify JavaScript files. Minification is the process of removing white space and comments from code. This makes the file size smaller, therefore faster to download. Minification alone does not reduce the number of HTTP requests on your site.
Let's fill in the field Exluded Javascript Files. We added there URL's of third JS files that exclude external JS.
cdn.schemaapp.com browser.sentry-cdn.com d2wy8f7a9ursnm.cloudfront.net widget.trustpilot.com cdnjs.cloudflare.com edge.fullstory.com fullstory.com cdn.mxpnl.com www.google-analytics.com connect.facebook.net bat.bing.com public.profitwell.com widget.intercom.io www.facebook.com js.intercomcdn.com static.xx.fbcdn.net cdn4.mxpnl.com fonts.gstatic.com zb uuidv4
Let's enable Load JavaScript deferred. This option addresses the PageSpeed recommendation: “Eliminate render-blocking resources”. It is preferable for performance that JavaScript files are either loaded in the footer of your site, or deferred so that they don’t block the downloading of other assets on your site, thereby slowing it down. By enabling Load JavaScript deferred, all the JavaScript files on your page, including those minified by WP Rocket, will be loaded with the defer attribute.
Note. Safe mode for jQuery for deferred JS ensures support for inline jQuery references from themes and plugins by loading jQuery at the top of the document as a render-blocking script.
Let's enable Delay JavaScript execution. Delay JavaScript Execution improves performance by delaying the loading of JavaScript files until there is a user interaction (e.g. moving the mouse over the page, touching the screen, scrolling, pressing a key).
Let's fill in the field Scripts to delay. There is the list of scripts that are safe to delay is provided.
getbutton.io /app/js/api.min.js feedbackcompany.com/includes/widgets/feedback-company-widget.min.js snap.licdn.com/li.lms-analytics/insight.min.js static.ads-twitter.com/uwt.js platform.twitter.com/widgets.js twq( /sdk.js static.leadpages.net/leadbars/current/embed.js translate.google.com/translate_a/element.js widget.manychat.com google.com/recaptcha/api.js xfbml.customerchat.js static.hotjar.com/c/hotjar- smartsuppchat.com/loader.js grecaptcha.execute Tawk_API shareaholic sharethis simple-share-buttons-adder addtoany font-awesome wpdiscuz cookie-law-info pinit.js /gtag/js gtag( /gtm.js /gtm- fbevents.js fbq( google-analytics.com/analytics.js ga( ' ga(' adsbygoogle ShopifyBuy widget.trustpilot.com ft.sdk.min.js apps.elfsight.com/p/platform.js livechatinc.com/tracking.js LiveChatWidget /busting/facebook-tracking/ olark cdn.schemaapp.com browser.sentry-cdn.com d2wy8f7a9ursnm.cloudfront.net cdnjs.cloudflare.com edge.fullstory.com fullstory.com cdn.mxpnl.com www.google-analytics.com connect.facebook.net bat.bing.com public.profitwell.com widget.intercom.io www.facebook.com js.intercomcdn.com static.xx.fbcdn.net cdn4.mxpnl.com fonts.gstatic.com zb uuidv4
Step 3. Media.
- LazyLoad.
Let's enable for images. LazyLoad delays the loading of images on your website until the user scrolls down the page and actually needs to see them. WP Rocket do this in an SEO-friendly way, as recommended by Google.
Let's enable for iframes and video. It can improve actual and perceived loading time as iframes and videos will be loaded only as they enter (or about to enter) the viewport and reduces the number of HTTP requests.
Let's enable for Replace YouTube iframe with preview image. The thumbnails are pulled from YouTube, you don’t need to specify your own image.
- Emoji.
Let's enable for Disable Emoji. Disable Emoji will reduce the number of external HTTP requests.
- Embeds
Let's enable for Disable WordPress embeds. Prevents others from embedding content from your site, prevents you from embedding content from other (non-allowed) sites, and removes JavaScript requests related to WordPress embeds
Step 4. Preload.
- Preload Cache
Let's enable for Activate Preloading. When you enable preloading WP Rocket will generate the cache starting with the links on your homepage followed by the sitemaps you specify. Preloading is automatically triggered when you add or update content and can also be manually triggered from the admin bar or from the WP Rocket Dashboard.
Let's enable for Activate sitemap-based cache preloading. These URLs will be preloaded after the homepage URLs are preloaded, according to the same triggers: when you change the WP Rocket settings (because the cache is cleared), when the Cache Lifespan expires, when you click the Preload link from the admin toolbar, or on the WP Rocket dashboard.
Let's enable for Yoast SEO XML sitemap. WP Rocket automatically detected the sitemap generated by the Yoast SEO plugin. You can check the option to preload it.
- Preload Links
Let's enable link preloading. Preloading links will improve the perceived loading time of pages for a user navigating your site. If a user hovers over, or touches, a link for 100ms or more, the HTML of that page will be fetched in the background, so that when they actually click the link, the page will appear to load nearly instantly.
- Prefetch DNS Requests
Let's fill in the field URLs to prefetch. When your site loads any content hosted on a domain besides yours, your visitor's browser has to retrieve the file(s) from that other domain. Part of that process is the browser connecting to the domain, which is called DNS resolution. DNS prefetching tells the browser to perform this connection before the file is needed, so that it's already complete by the time the file is requested. This can give your loading time a minor boost, since DNS resolution will already have been processed when the external resources is requested.
//cdn.schemaapp.com //browser.sentry-cdn.com //d2wy8f7a9ursnm.cloudfront.net //widget.trustpilot.com //cdnjs.cloudflare.com //edge.fullstory.com //fullstory.com //cdn.mxpnl.com //www.google-analytics.com //connect.facebook.net //bat.bing.com //public.profitwell.com //widget.intercom.io //www.facebook.com //js.intercomcdn.com //static.xx.fbcdn.net //cdn4.mxpnl.com //fonts.gstatic.com //code.ionicframework.com
Step 5. Add-ons.
- One-click Rocket Add-ons
Let's enable for Google Tracking. WP Rocket will host these Google scripts locally on your server to help satisfy the PageSpeed recommendation for Leverage browser caching.
Let's enable for Facebook Pixel. WP Rocket will host these Facebook Pixels locally on your server to help satisfy the PageSpeed recommendation for Leverage browser caching.
Finally