Vladimir Trandev
Forum Replies Created
-
Hello @omahoung,
With the Web Fonts Optimization, we are changing the default way to load Google fonts in order to save HTTP requests. When you enable it, we add the so-called “preconnect” link to fonts.gstatic.com so we will do the DNS lookup, TLS negotiation, and the TCP handshake.
As for your other question, once the option is enabled we automatically preload Google fonts, so you do not have to apply anything else. We make a request to Google, get the generated CSS which actually includes the fonts and then save it locally. I can see that the feature is working properly for your application and the generated .css file is currently available in your uploads/siteground-optimizer-assets/fonts folder.
Regards,
VladimirHello @snowfox6,
The SG Optimizer plugin provides complete images optimization. I would not recommend you to use additional plugins which offer similar functionalities at the same time.
Regards,
VladimirHello @antoniop80,
It seems that your WP Cron is not working as expected:
Error: WP-Cron spawn returned HTTP status code: 503 Service Unavailable
I managed to manually force the optimization process but this is only a workaround:
Executed the cron event 'siteground_optimizer_start_image_optimization_cron' in 63.2s.
In this case, I would suggest you to check your Cloudflare settings and particularly for blocked requests as explained in the following article:
https://www.journeybytes.com/wordpress-cron-error-503-by-cloudflare/
However, if you need any further assistance, please feel free to submit a support ticket in your Client Area at Siteground.
Regards,
VladimirHello again,
There should be no problems to use Divi along with our SG Optimizer plugin. I would recommend you to try tweaking some of the frontend optimizations as @dimitart suggested:
https://www.siteground.com/tutorials/wordpress/sg-optimizer/frontend-optimization/
As an alternative, if your website is hosted at Siteground, you can also anytime submit a support ticket in your Client Area there.
Hello @omahoung,
By default we exclude WooCommerce pages. Furthermore, we monitor for WooCommerce cookies and disable the cache completely when such is present. For example, checkout page is not cached, because every time you add a product in the cart, WooCommerce cookie is being set.
As for database caching, we use our own implementation of the popular Memcached system. It speeds up database calls, API calls, and page rendering by storing data and objects in the server’s RAM to reduce the number of times a database is queried.
Regards,
VladimirHello @nanasflowers,
For more information of how to properly exclude certain script/s and to find its handler, please check the following thread:
https://www.ads-software.com/support/topic/how-to-use-sg-optimizers-filters-procedure/
As for resources loaded from an external source, you can exclude external script from being combined using the below filter:
add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' ); function js_combine_exclude_external_script( $exclude_list ) { $exclude_list[] = 'script-host.com'; return $exclude_list; }
In case, you have added the script as an inline script, you can exclude the inline script from being combined using:
add_filter( 'sgo_javascript_combine_excluded_inline_content', 'js_combine_exclude_inline_script' ); function js_combine_exclude_inline_script( $exclude_list ) { $exclude_list[] = 'first few symbols of inline content script'; return $exclude_list; }
Regards,
VladimirHello @mjoly2000,
Using more than one caching plugin(also in combination with Cloudflare) on your application could lead to potential issues due to the several caching layers. I would recommend you to also purge your Cloudflare’s cache and to enable the “Automatic Purge” option in our SG Optimizer plugin. I can see that you are not hosted at Siteground, so there might be some additional caching layer on your current host as well.
Regards,
VladimirHello @33delivery,
You can use more than one caching plugin on your application but this could lead to potential issues due to the several caching layers. Based on the provided information, it seems that our SG Optimizer plugin is not properly activated.
Could you please provide us with your domain, so we can take a look at the reported issue?
Regards,
VladimirHello again,
You can exclude script/s from being loaded asynchronously using the filter we’ve designed for that purpose. Here’s an example of the code which you can add to your theme’s functions.php file:
add_filter( 'sgo_js_async_exclude', 'js_async_exclude' ); function js_async_exclude( $exclude_list ) { $exclude_list[] = 'script-handle'; $exclude_list[] = 'script-handle-2'; return $exclude_list; }
For more information about how to find its handler, please check the following thread:
https://www.ads-software.com/support/topic/how-to-use-sg-optimizers-filters-procedure/
Hello @netnothing,
The optimization is made in batches, so there should be no issues with high CPU consumption. However, the process will take some time to complete due to the large number of images.
Regards,
VladimirHello @kiran11more,
I made a few tests on my end and it seems that the “Lazy Load Media” option is working as expected. For example, on the following page the images are lazy-loaded correctly -> https://escapeteamevents.com/wellness-events/:
<img src="https://escapeteamevents.com/wp-content/uploads/2021/12/Celebrity-Ferne-150x150.png" data-src="https://escapeteamevents.com/wp-content/uploads/2021/12/Celebrity-Ferne-150x150.png" alt="" class="wp-image-255508 alignnone size-thumbnail lazyloaded" width="162" height="162">
You can verify the above by right click over an image -> Inspect.
However, have in mind that a noscript tag should be present after the initial image and lazy loading of CSS background images is not supported.
I also confirmed that the “Deffer offscreen images” audit was passed successfully on Mobile
Regards,
Vladimir- This reply was modified 2 years, 11 months ago by Vladimir Trandev.
Hello @katmacau,
You can exclude certain scripts from “Defer Render-blocking JavaScript” via the exclude dropdown in the plugin’s settings:
https://www.siteground.com/tutorials/wordpress/sg-optimizer/frontend-optimization/
However, you can use SiteGround Optimizer filter to exclude scripts handlers from asynchronous loading. More information about the filter you can use is available in the plugin’s readme file or directly at:
https://www.ads-software.com/plugins/sg-cachepress/
Regards,
VladimirHello @elixirrdesign,
My colleague meant that you should post a new ticket at Siteground, so we can further investigate the issue:
https://www.siteground.com/kb/how_to_post_support_tickets/
Regards,
VladimirHello @forlanistudio,
In order for us to assist you more properly with the issue that you have experienced, please start a new thread. You should also provide us with your domain, so we can properly check your case. Have in mind, that we have made a lot of updates of our plugin since the current thread has been created, so make sure that you are using the latest version.
Regards,
VladimirThank you for the feedback, @kimball31!
The mentioned feature request has been already brought to the attention of our developers. However, we do not have ETA for the completion of this task.
Regards,
Vladimir- This reply was modified 3 years ago by Vladimir Trandev.