<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 24, 2014, at 11:12 AM, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 24, 2014 at 2:03 PM, Lucas Holmquist <span dir="ltr">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
I agree that it would be nice to implement&nbsp;<a href="https://issues.jboss.org/browse/AGJS-70" rel="12499200" target="_blank">AGJS-70</a>&nbsp;(Investigate removing jQuery requirement). Meanwhile, there is an open source project on GitHub that claims to offer a custom builder for jQuery in order to include only the modules needed [1] [2]. I haven't tried it yet but maybe we could create a custom jQuery build which includes only the parts currently needed in AeroGear. This would mean a smaller size of the jQuery dependency.&nbsp;</div>
</div></div></blockquote><div><br></div>The AG lib depends on a few parts of jQuery, the biggest being jQuery.Ajax and the promise implementation.<div><br></div><div>i know we can make custom builds of jQuery pretty easily( building from source ), &nbsp;but i don't really want to bundle it within our lib.</div>
<div><br></div><div>and i don't think with bower we can do this easily. although they did just add a post install hook, so perhaps that could be something to look at.</div><div><br></div><div>Datamanager only uses the promise implementation of jQuery( and some random thing for the filter method, &nbsp;which could probably be updated ). &nbsp;Promises are starting to become available natively in browsers and jQuery doesn't use the Promise/A+ spec, &nbsp;so it could be harder to fallback without a shim of some kind</div>
<div><br></div><div><br></div><div>while i don't really want to reinvent the wheel in terms of Ajax, &nbsp;it might be interesting to take a look. &nbsp;I think in a previous ML thread about what 2.0 looked like, &nbsp;that Pipeline would maybe just be a JSON only thing, with exception for multipart</div>
</div></blockquote><div><br></div><div>Do you mean here relying on a "lighter" Ajax lib or just refactoring it using plain old XmlHttpRequest ?&nbsp;</div></div></div></div></blockquote><div><br></div><div>we would have an internal AeroGear.Ajax( or something like that ) as our "lighter" ajax lib that used plain xmlhttprequests</div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><br></div><div><br></div><div><div><br></div><div><br><div><br><div><br></div></div></div></div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></body></html>