Re:Responsive CSS grid, reordered with native HTML5 drag and...
by seer on Friday September 04, 2015 @06:52AM
(#10169669)
Yeah I was thinking about removing the jQuery dependancy, as I don't "really" need it here - all of the heavy logic is implemented outside of jQuery and I used it mostly for easy event delegation and data attribute handling. I might work on a version without it, but I wanted to get this working as soon as possible and jQuery does help in code size reduction and ease of development.
Also this grid works without any javascript (pure css) so you only need javascript for drag'n'drop reordering
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by lukeholder on Friday September 04, 2015 @10:14AM
(#10170544)
Would love to see a version without jQuery! Thanks for the great work.
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by matthewmacleod on Friday September 04, 2015 @06:50AM
(#10169665)
That would be a cool new "feature"
Why? jQuery is a popular, useful library. It makes lots of things simpler, and in most cases isn't an additional dependency.
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by serverholic on Friday September 04, 2015 @10:14AM
(#10170543)
jQuery is a bloated library that tries to do too much. It's slow and becoming less and less necessary as browsers become more standards compliant.
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by balls187 on Friday September 04, 2015 @11:53AM
(#10171225)
Can you link to articles on jQuery's performance issues?
Is it's implementation slow, or do you mean it's size makes over the wire transmission slow?
Are all jQuery methods slow, or specific cases like DOM manipulation and/or AJAX calls.
It seems that a few years back jQuery had these issues, but are those claims still relevant?
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by mtschopp on Friday September 04, 2015 @12:47PM
(#10171533)
It's because jQuery is a library on top of JavaScript. That makes it slower than native JavaScript.
If you don't need to support very old browsers you can easy go without jQuery.
Have a look at http://youmightnotneedjquery.com
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by Gigablah on Friday September 04, 2015 @09:45AM
(#10170318)
If you use React, there's react-grid-layout: https://strml.github.io/react-grid-layout/examples/0-showcas...
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by ssclafani on Friday September 04, 2015 @12:39PM
(#10171494)
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by err4nt on Saturday September 05, 2015 @07:43AM
(#10174555)
No jQuery! http://codepen.io/tomhodgins/pen/vOqaVa
if you want grids its easy enough to just build exactly what you want, trying to use grid systems is harder than building them.
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by emodendroket on Friday September 04, 2015 @09:27AM
(#10170216)
It'd probably be preferable to have jQuery and various libraries that depend on it to having different, slightly different variations on things jQuery does from each library you include.
Re:Responsive CSS grid, reordered with native HTML5 drag and...
by at-fates-hands on Friday September 04, 2015 @11:44AM
(#10171172)
Have you tried Jeet yet? It usually doesn't come up in the Google searches for grids.
My last search on responsive grids (June 2015) has not turned up anything without jQuery. That would be a cool new "feature", that none of the existing solutions so far offer.