User talk:Philosopher/vector.js

Suggest changes
Not entirely sure about the marked quotes. But I thought you might prefer it styled how WMF advise (for their devs etc). The most important changes are to use  instead of   or. The former is being deprecated, and the latter can be a little temperamental (depending on where and how used).  fredgandt  05:56, 7 January 2012 (UTC)


 * Well, since I really don't know what either command means - I just used "addOnloadHook" because that's what I saw in the instructions for the code at the time - I'll make the changes, thanks. Face-smile.svg  --Philosopher Let us reason together. 03:44, 8 January 2012 (UTC)


 * No probs. "addOnloadHook" (in simple terms) will trigger when the page elements are finished loading. So lets say we want to add some text to the text inside an element of the page. We first have to tell the script to get the element, so it knows which to add the text to. If the script starts to run before the page has finished loading, the element we are looking for might not exist (yet), and the script will crash. With the on load hook, the script waits until it's told that all the DOM elements of the page are ready. Now though, "addOnloadHook" is being deprecated and we should all be using f***ing jQuery instead. You'll still see all kinds of code being used that is deprecated. Standards historically take many years to pass fully into common use. Best to try to keep up though. Let me know if anything goes wrong, and I'll do my best to help.  fredgandt  04:10, 8 January 2012 (UTC)


 * Thanks for the explanation. --Philosopher Let us reason together. 04:23, 8 January 2012 (UTC)