----- Original Message -----
From: "Greg Sheremeta" <gshereme(a)redhat.com>
To: "Einav Cohen" <ecohen(a)redhat.com>
Cc: devel(a)ovirt.org
Sent: Thursday, June 5, 2014 5:51:08 PM
Subject: Re: [ovirt-devel] jQuery?
----- Original Message -----
> From: "Einav Cohen" <ecohen(a)redhat.com>
> To: "Greg Sheremeta" <gshereme(a)redhat.com>
> Cc: devel(a)ovirt.org
> Sent: Thursday, June 5, 2014 11:43:24 AM
> Subject: Re: [ovirt-devel] jQuery?
>
> > ----- Original Message -----
> > From: "Greg Sheremeta" <gshereme(a)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?
>
> - 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(a)redhat.com
> >
> > _______________________________________________
> > Devel mailing list
> > Devel(a)ovirt.org
> >
http://lists.ovirt.org/mailman/listinfo/devel
> >
>
_______________________________________________
Devel mailing list
Devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel