Unnecessary Stylesheet and Script Loading Without Player Added
-
Hello Support,
We noticed that even when the
[wpstream_player id="123"][/wpstream_player]
is not added, the related stylesheet and script files are still being loaded. This is causing slower page load times.
Also there are 3 3rd party large scripts causing website pagespeed load issue.
Additionally, even when using a third-party live stream service like Zoom, the youtube.min.js file is still being added unnecessarily. Could you please assist in resolving this issue?
Screen 1
Screen 2Thank you!
Mahesh Thorat- This topic was modified 1 month, 2 weeks ago by Mahesh Thorat.
-
Hello Mahesh,
Thanks for getting in touch and we’re sorry to hear that you are having some issues with the load time. We completely understand where you are coming from and agree with this partially. This is why we have added this as a task to investigate and come up with a solution for in the upcoming updates.
Our team will most probably start off by tackling the third-party services and move on to the other bits as they progress. This will be handled in phases so as to not disrupt the inner workings of the plugin unnecessarily.
Thank you for bringing this to our attention and I can assure you that you will be the first to know of any updates. Please do not hesitate to contact us with further questions or concerns!
Best,
WpStream TeamHello WpStream Team,
Thank you for your previous response regarding the unnecessary stylesheet and script loading issues. I appreciate your commitment to investigating this matter.
Could you please provide an update on the progress of this task? I’m eager to know if there have been any developments or if there’s an estimated timeline for a resolution.
Thank you for your continued support!
- This reply was modified 1 month ago by Mahesh Thorat.
Hello again,
We do not currently have an update as we have a list of priorities at the moment regarding certain issues and features but I can assure you that once we do have an update on this, you will be the first to know.
Note that we are tackling issues based on urgency and immediate interference. If this is something that is seriously and actively affecting your work (and others) and preventing you from streaming, please let us know and we will move it higher up on our list of priorities.
Thank you for understanding!
Best,
WpStream teamHello,
We haven’t heard from you in a while. Did you get the chance to look through our previous message regarding the level of urgency regarding this?
Best
Hello WpStream Team,
Thank you for following up. I appreciate your commitment to resolving the stylesheet and script loading issues.
While I understand that you are prioritizing various tasks, I want to reiterate that the extra loading of stylesheets and scripts is significantly impacting page speed and overall user experience on my site. It would be very helpful to have an estimated timeline for when I can expect a fix or at least some updates on your progress.
If there’s anything specific you need from my end to help expedite this, please let me know.
Thank you for your support!
Best,
Mahesh ThoratHey Manesh,
We don’t currently have a timeline for addressing this, and the team seems to view it more as a nuisance than an actual issue. While I’m not expecting any immediate changes, I’ll personally look into why it’s being handled this way and try to explain it for you. I’ll follow up in the next few days with an update.
Best regards, Gabriel
Hello again Manesh,
I’m finding that this is common in WordPress.
For instance, our homepage loads no less than 10 resources that belong to WooCommerce although it’s not ‘selling’ anything on that particular page.
And this is considered acceptable, provided that, where possible:- resources are minified
- 3rd party resources are loaded from CDN (in our case videojs etc)
- proper headers accompany the resources so that they can be cached by the browser (and thus only loaded once)
Having our plugin NOT load its resources on pages that they are irrelevant, while technically possible, is tricky. To accomplish that it would have to scan all loading pages’ content, including content introduced by other plugins, and then actively alter the page to remove the part that requests own resources, while preserving the resource that accomplishes the task at hand (dealing with pruning resources). All in a sea of other (unknown) plugins’ scripts that may execute before or after ours. That’s prone to error on multiple levels and not something we want to go into unless the benefits outweigh the risks.
If load times of WpStream resources introduce a delay that’s critical for your use case, you may be able to greatly reduce it (together with resources of other plugins) by using ‘concatenation’, ‘minification’, ‘asset optimization’ plugins; some come with side effects, so be careful. If that’s still not good enough and you wish to contribute a viable custom optimization, we’ll be more than happy to incorporate it.
Regardless, I’ll personally make sure that the ‘acceptable’ criteria above is met – and address until the next release if not, will comment here if the case.
Hope this is useful and it makes sense, best regards, G.
Hello, WpStream Team,
Thank you for your detailed response and for taking the time to explain the challenges involved in addressing the unnecessary stylesheet and script loading.
I understand the complexities of removing resources dynamically and how it can lead to errors when dealing with a variety of plugins. I also appreciate your efforts to ensure that the resources are minified and properly cached to mitigate performance issues.
That said, the extra loading of resources is still affecting my site’s speed and overall user experience, especially since the scripts are being loaded even when the player isn’t present. While I will explore the use of concatenation, minification, and asset optimization plugins, I’d like to know if there are any updates or potential improvements on the horizon for this specific issue.
If there’s any additional information I can provide to help expedite the resolution or contribute to coding or testing solution, please let me know. I’m looking forward to hearing from you and continuing to work together on resolving this.
Thank you again for your support.
Best regards,
Mahesh ThoratHey Manesh,
I’m almost certain your later responses are artificially generated. While that’s not necessarily a bad thing, your ai helper fails to follow reasoning and weigh the facts.
Unless you can add to this discussion logically, constructively, and non repetitively, we will assume you’re just trolling here and treat further input from you as spam.
Best, G.
Hello @wpstream, Kindly note if you really want to increase your users performance then you make your plugin better by not loading unnecessary scripts and styles without using wpstream in page.
Also if you have made the plugin there is not anything impossible in world of WP.
I already have added some hooks in my theme so if the wpstream not added in my page then I have deregistered JS and CSS.
Till this was okay for me. But when I faced this https://www.ads-software.com/support/topic/error-preventing-product-edit-for-shop-manager-role-with-wpstream-plugin/
major issue I was completely deactivated plugin.
Hope you don’t judge if I have flagged you something.
And I have used only for modifications and made better auto corrections to my reply with AI.
** Please take a look for AI tools. It will help dev detect and how we can fix this type of things.
- You must be logged in to reply to this topic.