Posts made by Martin Dougiamas

Moodle in English -> Lounge -> Embedding Google gadgets

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Plugin developers Picture of Testers
Here is a random Google gadget embedded in a forum post:



Many more are in the Gadget directory. If you come up with any good educational scenarios using these let us know!

Note that you need to have the "moodle/site:trustcontent" capability enabled for your role if you want to do this sort of thing in your own sites (it's off by default in all versions of Moodle for security).
Average of ratings: -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Plugin developers Picture of Testers
In fact Moodle 1.9.3 will be next week, on Wednesday (October 1) or the next day. smile

Developers, please make a special effort to get in any outstanding patches, fix new bugs or test existing fixes before the automated Weekly build on Wednesday, so that I can release it then as Moodle 1.9.3.

Average of ratings: Useful (1)
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Plugin developers Picture of Testers
I do like the idea of option 3 from a "make it nice and tidy" standpoint, but ...

One pro for the big static JS file is it reduces hits on the server for the first time and then it caches very nicely after that (I guess the browser can also keep it precompiled too). Lots of files means lots of hits on httpd the first time at least. This may not be a huge issue but it is the number one thing that YSlow checks for (Minimise HTTP requests). Perhaps this is offset by less loading on pages that don't need it, I'm not sure.

Another small issue is that moving files around has the potential to break local customisations etc.

Overall, I think I'd vote conservatively for option 1. If that's not popular then do it properly with option 3.