3 ms·
This is really cool, but I'm not sure I'd use it because of the plugin issue. Usually, I don't just use JQuery - I use JQuery, plus a few JQuery plugins, plus
by nostrademons 19y ago
This is really cool, but I'm not sure I'd use it because of the plugin issue. Usually, I don't just use JQuery - I use JQuery, plus a few JQuery plugins, plus JQuery UI, plus some custom JavaScript files that are built off this. To deploy them, I concatenate them all together in dependency order, minify the whole thing, and GZip it. That saves HTTP requests, and multiple files with the same coding standards tend to compress very well. (JQuery + Dimensions + Dropshadow + Corner = 20504 bytes when compressed together, vs. 21919 bytes when compressed separately.)
It looks like with this, I'd need to request JQuery off Google's infrastructure and then all the other stuff off my own, so it's multiple requests where one used to do, and you don't get the benefit of compressing them together.
- boucher 19y agoWhile I think you have some good points, the difference between 20504 and 21919 bytes is completely meaningless.
- jauco 19y agoIt's brings it down to one request _and_ it reduces the filesize. Requests are relatively slow, you want as few as reasonable possible.
- boucher 19y agoI tend to agree, and I didn't make any claims about the number of requests. But data transfer really isn't all that slow, and 1415 bytes only takes about 10 milliseconds on a dsl connection (and 100ms on dial up), which is insignificant compared to the other factors involved.
- morbidkk 19y agoand you assume all who are accessing your web application from n number of places over the world have such fast internet access. I doubt