Here is a jQuery code I wrote in order to load prettyPhoto jQuery plugin (prettyPhoto homepage) only when required. This process can also be applied to other plugins by analyzing the plugin triggers from within the rest of the page content.
In my years of experience in programming, I have observed that certain performance ‘tweaks’ work best for certain languages. This is mostly due to the nature of the interpreter/compiler involved in executing a particular piece of code.
Wading through the marshlands of object oriented programming, one must at one time realize that there are two fundamental skills that one needs, in order to truly embody the spirit of object oriented paradigm.
- The ability to abstract ones thought processes.
- Perceive the harmony within abstract chaos.