----- Original Message ----- > From: "Einav Cohen" <[email protected]> > To: "Greg Sheremeta" <[email protected]> > Cc: [email protected] > Sent: Thursday, June 5, 2014 11:43:24 AM > Subject: Re: [ovirt-devel] jQuery? > > > ----- Original Message ----- > > From: "Greg Sheremeta" <[email protected]> > > 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. 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 :( > > - 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. Greg > > > > > Thanks, > > Greg > > > > Greg Sheremeta > > Red Hat, Inc. > > Sr. Software Engineer, RHEV > > Cell: 919-807-1086 > > [email protected] > > > > _______________________________________________ > > Devel mailing list > > [email protected] > > http://lists.ovirt.org/mailman/listinfo/devel > > > _______________________________________________ Devel mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/devel
