jquery Programming Glossary: degradation
window.scroll function freezes firefox http://stackoverflow.com/questions/12428754/window-scroll-function-freezes-firefox to scroll the page not a good idea . Any performance degradation in the scroll handler s as a result will only compound the performance..
Wrapping long text in CSS http://stackoverflow.com/questions/1470810/wrapping-long-text-in-css don't recognize word wrap . That's about as graceful of degradation as you're likely to get without going to javascript. share..
Simple javascript inheritance using $.extend and module pattern http://stackoverflow.com/questions/16659326/simple-javascript-inheritance-using-extend-and-module-pattern to know my object instance. Disadvantages Small perf degradation Risk possible wag of the finger from Doug Crockford Consider.. I think it has its advantages is whatever small perf degradation you see is recaptured in the simplicity of the coding experience... . You mentioned that there is small performance degradation but this really depends on scale of the application 2 sheep..
jQuery serialize does not register checkboxes http://stackoverflow.com/questions/3029870/jquery-serialize-does-not-register-checkboxes does it then you're eliminating any chance of graceful degradation for your form. If you still absolutely need to do it just use..
Client-side or server-side processing? http://stackoverflow.com/questions/3064018/client-side-or-server-side-processing vast majority of use cases SEO and mobile legacy browser degradation are not a big concern much easier when you synthesize HTML server..
jQuery - Show and hide last 4 numbers of a phone number http://stackoverflow.com/questions/6334751/jquery-show-and-hide-last-4-numbers-of-a-phone-number http jsfiddle.net 4fzaG 3 EDIT For the sake of graceful degradation you may want to have the default view show the number and only..
Tips for gracefully loading a web page? http://stackoverflow.com/questions/8494008/tips-for-gracefully-loading-a-web-page elements again. However rather than aiming for graceful degradation you may consider trying for progressive enhancement to enable..
window.scroll function freezes firefox http://stackoverflow.com/questions/12428754/window-scroll-function-freezes-firefox putting code in the scroll callback will slow down any attempts to scroll the page not a good idea . Any performance degradation in the scroll handler s as a result will only compound the performance of scrolling overall. Instead it's much better to..
Wrapping long text in CSS http://stackoverflow.com/questions/1470810/wrapping-long-text-in-css
Simple javascript inheritance using $.extend and module pattern http://stackoverflow.com/questions/16659326/simple-javascript-inheritance-using-extend-and-module-pattern is being passed into a callback it is NOT something I am tracking to know my object instance. Disadvantages Small perf degradation Risk possible wag of the finger from Doug Crockford Consider this just run in any js console var Animal function var publicApi.. a few instances of something. Usually only a couple. The reason I think it has its advantages is whatever small perf degradation you see is recaptured in the simplicity of the coding experience. We have a LOT of code to write these days. We also have.. this question I think it boils down to the issue of performance . You mentioned that there is small performance degradation but this really depends on scale of the application 2 sheep vs 1000 sheep . Prototypal inheritance should not be ignored..
jQuery serialize does not register checkboxes http://stackoverflow.com/questions/3029870/jquery-serialize-does-not-register-checkboxes serializes form data behaves differently to the way the browser does it then you're eliminating any chance of graceful degradation for your form. If you still absolutely need to do it just use a select box with Yes No as options. At least then users with..
Client-side or server-side processing? http://stackoverflow.com/questions/3064018/client-side-or-server-side-processing browser and connection capabilities are up to snuff for the vast majority of use cases SEO and mobile legacy browser degradation are not a big concern much easier when you synthesize HTML server side Even then doing client side layout makes testing..
jQuery - Show and hide last 4 numbers of a phone number http://stackoverflow.com/questions/6334751/jquery-show-and-hide-last-4-numbers-of-a-phone-number '#number' .click function this .find 'span' .toggle Example http jsfiddle.net 4fzaG 3 EDIT For the sake of graceful degradation you may want to have the default view show the number and only obfuscate it if JavaScript is enabled. div id number data..
Tips for gracefully loading a web page? http://stackoverflow.com/questions/8494008/tips-for-gracefully-loading-a-web-page all the manipulation using javascript has been done show the elements again. However rather than aiming for graceful degradation you may consider trying for progressive enhancement to enable javascript to add functionality to your site rather than relying..
|