What does yui-moodlesimple-min.js do?

What does yui-moodlesimple-min.js do?

by Ian L -
Number of replies: 1

I've been trying to improve my home page load speed and found the file:

https://www.mysite.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js

I looked at this page and I am wondering if this is still in use? If so what does it do and if not how can I remove the call to it?

Also curious about and wondering if these can be removed:

  • core/first.js (sounds more important)
  • /core/1663281357/fontawesome-webfont.woff2?v=4.7.0 (I don't think I use these)

Anybody know how to make moodle a cookie free domain?


Average of ratings: -
In reply to Ian L

Re: What does yui-moodlesimple-min.js do?

by Ken Task -
Picture of Particularly helpful Moodlers

Here's how you can test if they are needed:

mv first.js .first.js

note the 'dot' in front of the new filename.

That hides it from your web service.

For the other file (that you don't use - but system does) do the same.

No need to restart or reboot, but do turn on debugging ... then go to someplace in your site where you saw those files being used in logs.

Still work?

Uhhh ... even if you don't get an error and site appears to work, predict upon your next upgrade, depending upon how you do that, some issue might raise it's ugly head.

There are lots of libraries in moodle.  License on those says you can use them for free but you have to include the entire library.

My 2 cents ...

'SoS', Ken