Skip Navigation

[Resolved] Loading extra stylesheets on the front-end

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 24 replies, has 4 voices.

Last updated by Christian Cox 3 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1761649

I am seeing a unnecessary stylsheets loaded with Woocomerce Views or Toolset Veiws on the frontend, creating poorer performance of the site. When either are activated, for example, I see the following add on the front end, causing an error:

<link rel="stylesheet" id="wp-editor-font-css" href="hidden link" type="text/css" media="all">

I have applied the fix mentioned here: https://toolset.com/errata/toolset-loads-extra-google-fonts-files-on-the-front-end/ but it didn't work.
Site: hidden link
Please advise.

#1761897

Hello, can you try these troubleshooting steps?
- Temporarily deactivate all plugins except Types and Views, and activate a default theme like Twenty Twenty
- Test again. If the extra file is no longer enqueued, reactivate your theme and other plugins one by one until the problem returns. Let me know the results of this test.
- If the problem is not resolved, please let me know.

#1762221

Hi, the problem persists when Toolset WooCommerce Views is active. It's not there if just the other two plugins you mentioned are active. I have left the site with the default theme and just these 3 plugins activated so that you can confirm. Thanks.

#1762571

I can see the fonts API loaded on your site now. Feel free to reactivate other plugins and your theme, and I will continue investigating locally. Thank you!

#1762585

Okay I'm escalating this to my second tier team for further investigation. In my local environment I can reproduce the same issue with only Toolset plugins active (not even WooCommerce), so it seems that the problem was recently resolved in Views/Blocks but not in WooCommerce Views. I will keep you posted as I receive more information about the problem. Thanks for the report!

#1762641

Thanks for escalating. I applied the fix mentioned here: https://toolset.com/errata/toolset-loads-extra-google-fonts-files-on-the-front-end/ so that's probably why I don't have it with just the Views plugin. Looking forward to your reply, it's a bit of an urgent issue for us (working through site speed issues). Thank you.

#1762661

I applied the fix mentioned here: https://toolset.com/errata/toolset-loads-extra-google-fonts-files-on-the-front-end/ so that's probably why I don't have it with just the Views plugin
To clarify, I want to mention that the erratum you linked to was already resolved in the latest Views and Blocks versions. That means the noted patch file is no longer required for Views or Blocks. It's possible that the issue is not apparent with WooCommerce Views active without Views active, so that would seem to indicate the problem is in Views. However, Views (or Blocks) is a dependency for WooCommerce Views. Without it, WooCommerce Views does not function fully. So the problem in WooCommerce Views was not evident during that test with Views deactivated. That would be confusing during a plugin isolation test, since it could seem the problem was in Views if WooCommerce Views was active but Views was deactivated, and the issue was not reproduced.

You would be able to confirm this by deactivating and deleting Views, then reinstalling the latest version. That would remove the patch file you applied before. Then activate only Types and Views, not WooCommerce Views. At this point, the issue should not occur. Then activate WooCommerce Views, and the issue should return. That's what I'm seeing in my tests, if it's not the same in your environment please let me know.

If a similar patch file is made available for the WooCommerce Views plugin, I'll let you know as soon as possible.

#1763219

So, is there a chance the patch file won't be offered for WooCommerce Views in a timely fashion? It's really bloating up our page load time and impacting SEO. We may need to give us Toolset all together if this is the case.

As far as latest versions, I am a little confused, I only see Toolset Blocks and Woocommerce Blocks, are those latest versions you are referring to? Will they work if we still use the classic editor?

Thanks

#1763359

Yes, you can still use the classic editor if you install Toolset Blocks, there is a setting in Toolset > Settings > General that will allow you to display the classic editor instead of the Blocks editor. Toolset Views is still available in the legacy plugins section, but for now, the features in Toolset Blocks and Toolset Views are identical. The only difference so far is that Blocks, by default, has the Block Editor active and Views, by default, has the classic editor active. You can toggle between the two editors in Toolset > Settings in either plugin.

Toolset WooCommerce Views and Toolset WooCommerce Blocks are the same thing, the terminology is confusing because it's listed different ways in different places. However, both names refer to the same plugin.

My team leader is going to try to put together a patch file for your site because the final plugin fix may take a month or more given the current schedule and priorities. I'll let you know when it is available.

#1763435

We have added an erratum post with a workaround: https://toolset.com/errata/woocommerce-blocks-loads-extra-google-fonts-files-on-the-front-end/
Please find the workaround and apply the code as instructed there. Let me know if the problem is not resolved with WooCommerce Views active. Thanks!

#1764177
2020-09-02 12_31_59-Clipboard.png

I can't access the link, i get a 403 error 🙁

#1764203

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Could you please try the link again? I mentioned this to our systems team and they said it should be fixed now.

#1764305

Sorry for the inconvenience, our system team is aware of some sporadic 403 errors on the site and is working to resolve the issue. If you cannot access the link in your regular browser, please try a different browser as caching may be part of the problem.

#1764491

Ok, I am able to access now, but the fix didn't work, I am still seeing the following added:

<link rel='stylesheet' id='toolset-common-es-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='toolset_blocks-style-css-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='view_editor_gutenberg_frontend_assets-css' href='hidden link' type='text/css' media='all' />

<link rel='stylesheet' id='web-fonts-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='wp-components-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='wp-editor-font-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='wp-block-editor-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='wp-nux-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='wp-editor-css' href='hidden link' type='text/css' media='all' />
<link rel='stylesheet' id='woocommerce_views-block-style-css-css' href='hidden link' type='text/css' media='all' />
<script type='text/javascript' src='hidden link' id='toolset-common-es-masonry-js'></script>
<script type='text/javascript' src='hidden link' id='woocommerce_views_frontend_js-js'></script>

#1764567

Hi, Nigel's day has ended but I will leave a message for him to take a look when he returns in the morning. I tested the workaround code in my own local environment and it does not seem to solve the problem for me either, so there must be something different in Nigel's environment that is affecting the results. I'll follow up with you tomorrow after I have spoken to Nigel.