Live data from Hacker News

Sprint – A high-performance, DOM library for modern browsers

github.com

11–20 of 72 posts

Re: Sprint – A high-performance, DOM library for modern browsers

#11
post #4

It doesn´t seem to support the jQuery .ajax() method, I hope its added soon

Agreed, ajax is usually the reason I just think fuck it and add jQuery

You can always build a custom jQuery with just the AJAX functionality: https://github.com/jquery/jquery/blob/master/README.md#modul...

Re: Sprint – A high-performance, DOM library for modern browsers

#12

    A tiny, lightning fast jQuery-like library for modern browsers.
Respectfully, this entire description is an oxymoron. Every time someone mentions a jQuery-like microlibrary, they just mean a jQuery without wide browser(-quirk) support.

Browser support is a big part of what makes jQuery jQuery, and without it, you definitely get a much smaller library, but it is also very un-jQuery-like. :)

Now for some praise! It makes me really happy to see a comparison - benchmark! - with competitors, which is something everyone should be required to do, when they create software with 40,000 similar offerings. Looking at you, Markdown editors!

Re: Sprint – A high-performance, DOM library for modern browsers

#14
post #2

I am tired of terribly slow mobile sites. A demo of the difference would help.

I ran the first benchmark linked in the readme on my mobile phone (2013 Moto G, i.e. old mid-end phone) and on my laptop (Thinkpad X230 i5-3320M), both on Firefox:

    Sprint (phone):    33.1 kops
    jquery (phone):     8.8 kops
    zepto  (phone):    10.1 kops

    Sprint (laptop): 1435.2 kops
    jquery (laptop):   49.2 kops
    zepto  (laptop):   65.9 kops
Not bad, if that translates to real world performance.

Re: Sprint – A high-performance, DOM library for modern browsers

#15
post #12

A tiny, lightning fast jQuery-like library for modern browsers. Respectfully, this entire description is an oxymoron. Every time someone mentions a jQuery-like microlibrary, they just mean a jQuery without wide browser(-quirk) support. Browser support is a big part of what makes jQuery jQuery, and without it, you definitely get a much smaller library, but it is also very un-jQuery-like. :) Now for some praise! It mak…

In a horrendously framgented mobile internet, one of the few blessings we do have is that the vast majority of mobile web browsers are WebKit variants so this kind of makes a lot of sense if, say, you're only targeting iOS and Android default browsers.

I'm curious if it will take jQuery plugins though. Will try later.

Re: Sprint – A high-performance, DOM library for modern browsers

#16
post #15
post #12

A tiny, lightning fast jQuery-like library for modern browsers. Respectfully, this entire description is an oxymoron. Every time someone mentions a jQuery-like microlibrary, they just mean a jQuery without wide browser(-quirk) support. Browser support is a big part of what makes jQuery jQuery, and without it, you definitely get a much smaller library, but it is also very un-jQuery-like. :) Now for some praise! It mak…

In a horrendously framgented mobile internet, one of the few blessings we do have is that the vast majority of mobile web browsers are WebKit variants so this kind of makes a lot of sense if, say, you're only targeting iOS and Android default browsers. I'm curious if it will take jQuery plugins though. Will try later.

iOS and default Android. If you want to ignore Firefox and Opera then that’s your choice I guess.

Re: Sprint – A high-performance, DOM library for modern browsers

#17
post #12

A tiny, lightning fast jQuery-like library for modern browsers. Respectfully, this entire description is an oxymoron. Every time someone mentions a jQuery-like microlibrary, they just mean a jQuery without wide browser(-quirk) support. Browser support is a big part of what makes jQuery jQuery, and without it, you definitely get a much smaller library, but it is also very un-jQuery-like. :) Now for some praise! It mak…

JQuery themselves have two versions, one with less browser support which is apparently smaller/faster. So it's weird to say that it's not-JQuery-like.

Though JQuery still recommends the bigger library for most users (unless you're embedding in a mobile app or stuff like that).

Re: Sprint – A high-performance, DOM library for modern browsers

#18
post #12

A tiny, lightning fast jQuery-like library for modern browsers. Respectfully, this entire description is an oxymoron. Every time someone mentions a jQuery-like microlibrary, they just mean a jQuery without wide browser(-quirk) support. Browser support is a big part of what makes jQuery jQuery, and without it, you definitely get a much smaller library, but it is also very un-jQuery-like. :) Now for some praise! It mak…

[deleted]

Re: Sprint – A high-performance, DOM library for modern browsers

#19
post #4

It doesn´t seem to support the jQuery .ajax() method, I hope its added soon

Agreed, ajax is usually the reason I just think fuck it and add jQuery

Maybe using a fetch polyfill is more future looking?

https://github.com/github/fetch

Post reply on HN