Avatar mark.scott.10 asked

WidgetKit and CSS/JS files Loading

One of the issues we are experiencing with widgetkit is the loading of many css and JS files on our homepage despite no widgets being used there. Is there way to resolve this problem so that we reduce the overhead of CSS and JS files and only call them when required?

  • Widgetkit

19 Answers

2

Avatar wildfire answered

Would love to get an updated response from Sascha on this issue that several of us are frustrated with.

1

Avatar ammox answered

Yes but if they aren't needed on a specifc page they shouldn't be loaded. Would go a long way towards preventing conflicts. I've read in other areas that widgetkit is supposed to detect if jquery is already loaded but that isn't the case. Regardless of jquery status widgetkit/jquery.js still loads.

0

Avatar ramzi.hizi answered

I'm having the same issues. I think this is a major problem when loading the page it takes my websites 15 to 20 seconds to load.

Please help!!!!

0

Avatar marina.de.wit answered

I also would like to know if there is a way to avoid certain css/js files from loading if you are for example only using one widget. Or like what the other people are saying not loading on pages where they are not needed. I love the map with the directions function but sometimes it's all I using for the website. And the overload of css and js is huge!

0

Avatar mark.scott.10 answered

Does anybody in the tech team/support have a response on whether this is an oversight, something to be changed or whether there are methods of optimisation. Not least, why not contain inside a single js file?

0

Avatar baggeler answered

Fully endorse this request. Hope somebody from Yootheme will answer.

Maybe also add the tag "Feature request" to this thread?

0

Avatar rooney answered

Would be nice have an answer!

0

Avatar mark.scott.10 answered

I agree, but it was not always the case as we used to get tons of files.

Happy!

0

Avatar wildfire answered

We also do not want any Widget Kit Javascript or CSS files to load on pages that are not using it.

This is very bad for performance and we get bad marks on our site optimization tests because of all the files that are being loaded by Widgetkit on pages that we don't use it on, like our home page.

Is there anything that can be done here?

We have installed the latest version of widget kit and we get the following files loading on our home page even though we don't use widgetkit on the home page:

widgetkit-0b285a2e.css

jquery.js

widgetkit-7ce1a7bf.js

lightbox.js?_=1342048916768

mediaelement-and-player.js?_=13420489…

spotlight.js?_=1342048916771

We want to use Widgetkit on some of our pages, but are having a lot of performance issues because of these 6 unnecessary files being loaded.

Please do something to fix this, or we will not be able to continue paying for our commercial subscriptions to yootheme as we will have to look for other solutions that are not so hard on performance and SEO.
(Google webmaster tools is giving our sites poorer performance ratings because of this and from what we have seen, it is effecting our rankings.)

Many other extensions we use for Joomla only load their javascript files when we are using the extension on the page.
Is there a reason widgetkit also can't operate this way?

Edited

0

Avatar steven.luiting answered

Whatever. Do you actually have a site using this? I have two and they load every Js and CSS file for everything in separate files. My load time is terrible and I am in the process of hacking your code in order to use only one main js and css file for THIS VERY REASON!

This was an insulting answer either through your own ignorance or whatever else. .

0

Avatar wildfire answered

Really frustrating that widgetkit is slowing down our site on all pages including the home page when there is only one page on our whole site that uses widgetkit.

For example, we don't use widgetkit on our home page, yet all the css and javascript files are being loaded.

It even loads things that we don't use at all on our site such as the widgetkit media and lightbox javascript files.

We love widgetkit but is there any way that you can make it so it doesn't load all the javascript and css files on pages that don't use widgetkit?

0

Avatar mario.mari answered

I care for fast page loads first, and therefore it is not widgetkit. I do not understand why it is loaded on the page on which there is nothing to widgetkit?

0

Avatar simon.buehring answered

I also an experiencing this issue.

Sascha wrote: "Hi guys, there is only one CSS and one JS files loaded by Widgetkit. These two files are only loaded once. After that they are cached in the browser. So we see no issue here..."

Sascha you might not see an issue here but lots of your customers do see an issue which your response does not address.

Please can you respond correctly to the question/issue which many of us are experiencing and do not just ignore. The original question was posted 10 months ago and there is still not a satisfactory answer.

0

Avatar wildfire answered

We are a paying customer for the Developer packages of YooTheme for the templates, widgetkit and Zoo.

Is there any way that we can at the very least get a response on this ticket from Yootheme?

If Yootheme isn't going to even bother to respond to support tickets, then we will not be renewing our subscriptions in the future.

The main reason we are paying for the subscriptions is because on the sales page it says:

"Includes New Releases,
Technical Support, Regular Updates"

If you are not going to provide Technical support or even bother to respond to tickets in the support forum, then you need to remove "Technical Support" from the description of what we purchased.

0

Avatar wildfire answered

Sascha, the reason we are all voting it down is that you should not load any files on our pages that don't use widgetkit.
Our home page does not use widgetkit, but there are lots of files that widgetkit loads on it, not just 2.

Please change the way widgetkit works in this regard.

0

Avatar mark.scott.10 answered

Um, sascha, i am acceptingnthis at the moment as you can see txhat there are a number of questions that are arising about this. It might help if you gave a more extensive answer that explained the numerous css and js files so that we can understand what is happening and also whethet a page needs to load js even if widgetkit it not being used. I suspect the answer tomthat may relate to joomla practice rather than being a yootheme decision. If you could be a lottle more forthcoming, i will accept the answer and we can close the issue

0

Avatar trpaquette answered

I haven't looked into this or anything but I'm guessing you can simply remove jquery.js from the Widgetkit component and then call jquery on the page(s) with Widgetkit BEFORE the widgetkit component is called into the page.

-7

Avatar sascha Yootheme answered

Hi guys, there is only one CSS and one JS files loaded by Widgetkit. These two files are only loaded once. After that they are cached in the browser. So we see no issue here...

Note: I get it. Some of you don't like the answer but voting it down will not help other members because they think there is no offical answer to this question but there is...

@mark.scott.10 it would help if you accept the answer...

Edited

Know someone who can answer? Share a link to this question via email or twitter.