manhcodedao / jquery-watermark

Automatically exported from code.google.com/p/jquery-watermark
0 stars 0 forks source link

Only overload jQuery.val() function when native placeholder is not present or not being used. #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As of version 3.1.3, the plugin always overloads jQuery.val(), even if the 
browser has native placeholder support.  This results in a slight performance 
reduction of the .val() function.

Suggestion:
If the browser has native placeholder support, don't overload the jQuery.val() 
function unless a watermark is created that has the useNative option set to 
false.

Original issue reported on code.google.com by lyle.she...@gmail.com on 26 Jul 2011 at 4:32

GoogleCodeExporter commented 8 years ago
Have you actually tested this?  What are the performance numbers?  Do you have 
a test page I can use?

Original comment by t...@speednet.biz on 20 Dec 2011 at 12:58

GoogleCodeExporter commented 8 years ago
Marking invalid, as there is no evidence of reduced performance.  Plus, this 
kind of functionality would present complicated issues when dynamically adding 
or removing watermarks from the page.  Doesn't make any sense to pursue.

Original comment by t...@speednet.biz on 13 Aug 2012 at 3:09