
----- Original Message -----
From: "Vojtech Szocs" <vszocs@redhat.com> To: "Greg Sheremeta" <gshereme@redhat.com> Cc: "Einav Cohen" <ecohen@redhat.com>, devel@ovirt.org Sent: Thursday, June 5, 2014 12:29:41 PM Subject: Re: [ovirt-devel] jQuery?
----- Original Message -----
From: "Greg Sheremeta" <gshereme@redhat.com> To: "Einav Cohen" <ecohen@redhat.com> Cc: devel@ovirt.org Sent: Thursday, June 5, 2014 5:51:08 PM Subject: Re: [ovirt-devel] jQuery?
----- Original Message -----
From: "Einav Cohen" <ecohen@redhat.com> To: "Greg Sheremeta" <gshereme@redhat.com> Cc: devel@ovirt.org Sent: Thursday, June 5, 2014 11:43:24 AM Subject: Re: [ovirt-devel] jQuery?
----- Original Message ----- From: "Greg Sheremeta" <gshereme@redhat.com> Sent: Tuesday, June 3, 2014 9:19:23 PM
Does anyone see an issue with adding jQuery to GwtHostPage? Some PatternFly widgets require bootstrap.min.js which requires jQuery.
apologies in advance for the complete ignorance here:
- is there any kind of potential collision that can occur between the gwt javascript and the jQuery javascript?
Namespace collision -- no. jQuery registers itself globally as '$' and 'jQuery', and neither GWT itself nor our GWT code use those names anywhere.
+1 this is my understanding as well.
However, there can be behavior conflicts. I'm currently debugging a problem where tooltips aren't destroyed when grid refreshes happen. The jQuery widget doesn't 'know' that the GWT widget it's attached to was destroyed :(
In cases like this one, could we close/destroy the tooltip via GWT JSNI code?
Yep, that is what I'm trying to do.
- is jQuery expected to substantially affect performance / loading time on the client side or anything like that?
First-load time will be negligible and cached.
Mass-use of bad selectors could decrease browser performance. I think we should very rarely use jQuery in oVirt. Usages of it should be very justifiable.
Exactly, any direct use of jQuery should be justified by a solid reason.
Greg
Thanks, Greg
Greg Sheremeta Red Hat, Inc. Sr. Software Engineer, RHEV Cell: 919-807-1086 gshereme@redhat.com
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel