Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is a nasty trick many libraries do that I've taken a distinct liking to, and it looks like prototype is one of these. </p> <p>Mootools does this, If I am right, and it involves overloading many of the prototypes on the basic classes, monkey patching them. </p> <p>And likewise, I similarly encountered strange behaviour when mootools and jQuery were present, usually jQuery dying because it was calling some object method which had been somehow overloaded/monkey patched by Mootools. </p> <p>Also, mysteriously, taking mootools out of the script usage list, resulted in <em>everything</em> running much faster, which I concluded was due to less object pollution. </p> <p>Now I could be wrong, but I concluded from my experience such libraries just simply don't like to co-exist with each other, and seeing how mootools code seemed to me to degrade speed at which normal things were done, I sucked up and ported all mootools based code to jQuery ( A time consuming deal I assure you ), and the result, was code that was <em>fast</em> <em>and</em> didn't have weird errors that were unexplainable. </p> <p>I recommend you consider migration as at least <strong>One</strong> of your options. </p> <p><strong>One More thing, when writing:</strong> </p> <p>I tend to use this syntax with all my jQuery driven code, for a bit of safe encapsulation in the event somebody breaks '$' somehow. </p> <p><strong>Runtime Code</strong> This waits for document.ready before executing: </p> <pre><code> jQuery(function($){ code_with_$_here; }); </code></pre> <p><strong>jQuery Plugins</strong></p> <pre><code>(function($){ code_with_$_here; })(jQuery); </code></pre> <p>Using these will make it easier for people <em>using</em> any jQuery you happen to write to be able to use it without much of a conflict issue. </p> <p>This will basically leave them to make sure their code isn't doing anything really magical. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload