• Resolved СіРоЖа

    (@hoseua)


    Reduce unused JavaScript and defer loading scripts until they are required to decrease bytes consumed by network activity.
    WordPress Consider reducing, or switching, the number of WordPress plugins loading unused JavaScript in your page. To identify plugins that are adding extraneous JS, try running code coverage in Chrome DevTools. You can identify the theme/plugin responsible from the URL of the script. Look out for plugins that have many scripts in the list which have a lot of red in code coverage. A plugin should only enqueue a script if it is actually used on the page.

    Transfer Size 88.3 KiB
    Potential Savings 76.7 KiB
    URL …config/463…?v=2.9.51&r=stable(connect.facebook.net)

    since the last update, this error is regular

    • This topic was modified 2 years, 2 months ago by СіРоЖа.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi there!

    It sounds like you may be having some issues related to Facebook for WooCommerce and excessive JavaScript runtimes.

    Could you please also share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.  Once you’ve done that, paste it here in your response.

    Can you provide any further details about where you see this message? Is it on a particular page, all pages, or under certain circumstances?

    Thanks for any additional details you can provide.

    Thread Starter СіРоЖа

    (@hoseua)

    Hi. This is an excerpt of an error from the lighthouse report.
    I deleted some items because they are not for the public.

    ### WordPress Environment ###

    WordPress address (URL): https://agroshel.com.ua
    Site address (URL): https://agroshel.com.ua
    WC Version: 6.1.1
    REST API Version: ✔ 6.1.1
    WC Blocks Version: ✔ 6.5.2
    Action Scheduler Version: ✔ 3.4.0
    WC Admin Version: ✔ 3.0.3
    Log Directory Writable: ✔
    WP Version: 5.9
    WP Multisite: –
    WP Memory Limit: 512 МБ
    WP Debug Mode: –
    WP Cron: ✔
    Language: uk
    External object cache: –

    ### Server Environment ###

    Server Info: LiteSpeed
    PHP Version: 7.4.27
    PHP Post Max Size: 256 МБ
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.32-MariaDB-cll-lve
    Max Upload Size: 200 МБ
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ На Вашому сервері не включений клас SoapClient – деякі плагіни шлюзів
    які використовують SOAP
    можуть працювати не так
    як очікувалося.

    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Database ###

    WC Database Version: 6.1.1

    ### Post Type Counts ###

    attachment: 4432
    elementor_library: 9
    jb_store_css: 9
    log_emails_log: 179
    nav_menu_item: 8
    oembed_cache: 23
    page: 10
    post: 24
    product: 869

    ### Security ###

    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔

    ### Active Plugins (16) ###

    Cyr-To-Lat: від Сергій Бірюков
    Михайло Кобзаров
    Ігор Гергель – 5.2.6

    Facebook for WooCommerce: від Facebook – 2.6.9
    Jetpack Boost: від Automattic – 1.3.1
    Jetpack: від Automattic – 10.5.1
    LiteSpeed Cache: від LiteSpeed Technologies – 4.4.7
    Loco Translate: від Tim Whitlock – 2.5.8
    Log Emails: від WebAware – 1.4.0
    PWA: від PWA Plugin Contributors – 0.6.0
    Rank Math SEO PRO: від Rank Math – 3.0.5
    Rank Math SEO: від Rank Math – 1.0.81
    SiteGround Security: від SiteGround – 1.1.3
    TH Advance Product Search: від ThemeHunk – 1.1.1
    Ultimate Addons for Gutenberg: від Brainstorm Force – 1.25.3
    WC Ukraine Shipping: від kirillbdev – 1.10.0
    WooCommerce: від Automattic – 6.1.1
    YITH WooCommerce Wishlist: від YITH – 3.5.0

    ### Inactive Plugins (0) ###

    ### Dropin Plugins (1) ###

    maintenance.php: maintenance.php

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: UAH (₴)
    Currency Position: right_space
    Thousand Separator:
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    Connected to WooCommerce.com: ✔

    ### Theme ###

    Name: Top Store
    Author URL: https://www.themehunk.com

    WooCommerce Support: ✔

    ### Templates ###

    Archive Template: У вашій темі міститься файл woocommerce.php ви не можете змінювати користувацький шаблон woocommerce/archive-product.php з тих пір
    як woocommerce.php отримав пріоритет над archive-product.php. Це запобігає проблемам з відтворенням.

    Overrides: –

    ### Action Scheduler ###

    Canceled: 1
    Oldest: 2022-01-11 22:58:10 +0000
    Newest: 2022-01-11 22:58:10 +0000

    Complete: 1 549
    Oldest: 2021-12-29 13:09:04 +0000
    Newest: 2022-01-27 09:04:03 +0000

    Failed: 1
    Oldest: –
    Newest: –

    Pending: 2
    Oldest: 2022-01-27 18:22:23 +0000
    Newest: 2022-01-29 23:04:51 +0000

    ### Status report information ###

    Generated at: 2022-01-27 11:42:09 +02:00

    mother.of.code

    (@imazed)

    The Mother of Code

    This is an excerpt of an error from the lighthouse report.

    I’m not sure if you intended to send along an error log as well? If so, please try again, thank you!

    I’m not seeing a specific red flag in your system report, and since you have a low number of plugins active, it’s likely that your theme is causing some trouble. Can you please do a conflict test to rule out conflicts?
     
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce and Facebook for WooCommerce
    • Repeat the action that is causing the problem

    This is best done on a staging site. That’s a copy of your live site, so you can test things out without making changes to your actual site. Some hosting companies offer a staging site service within their hosting plans. If yours does not, there is a great free plugin that will allow you to build a complete staging site with a few button clicks: https://wordpress.org/plugins/wp-staging.

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Thread Starter СіРоЖа

    (@hoseua)

    This error persists after updating your plugin. Before the update, there were no such errors with the same plugins and this template.

    Hello @hoseua ,

    I’m not sure if I’ve understood the exact steps you took. Were you able to perform the conflict test as suggested above?

    Just to clarify you see that error message when you check your site using this Google Lighthouse tool: https://developers.google.com/web/tools/lighthouse#devtools , right?

    I can see that you have the “LiteSpeed Cache” plugin enabled. Can you please clear its cache and then deactivate it? Then check if the error message is showing on the site.

    Let us know how it goes.

    Thread Starter СіРоЖа

    (@hoseua)

    Just to clarify you see that error message when you check your site using this Google Lighthouse tool: https://developers.google.com/web/tools/lighthouse#devtools , right?

    yes
    I have a site in a subfolder, it’s exactly the same as the main one, with the same set of plugins, with the same settings and the same template. Only no Facebook plugin https://agroshel.com.ua/ru/
    and I don’t get such errors in lighthous

    • This reply was modified 2 years, 2 months ago by СіРоЖа.

    Howdy @hoseua

    Thanks for all you have shared so far.

    As this is a public forum where you are concerned with sharing sensitive information, of course, it would be best to get in touch with us directly.

    Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there.

    Thread Starter СіРоЖа

    (@hoseua)

    Deactivating your plugin has solved this problem.

    Plugin Support Brad P. a11n

    (@snaacks)

    Hi @hoseua

    Thanks for letting us know you don’t see the issue with the plugin disabled, knowing that the issue is not present when the plugin is disabled certainly lends to the idea that there may be a conflict happening with that update or another item on the site.

    For clarity, I wasn’t sure if the full conflict test was ever performed? When you tested did you find that with all other plugins disabled and just WooCommerce, as well as Facebook for WooCommerce enabled the issue persisted? If so I definitely recommend contacting us at WooCommerce.com > My Account > Support so we can investigate further.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Reduce unused JavaScript 1.2s’ is closed to new replies.