title: SASS (CSS) logic vs JQuery(Javascript) logic
body: <p>I am wondering which is better for implementing for loops or simple if logic in constructing a web UI. </p>
  
  <p>For instance in terms of performance will SASS <a href="http://thesassway.com/intermediate/if-for-each-while" rel="nofollow">@for</a> be better than jQuery's <a href="http://api.jquery.com/each/" rel="nofollow">.each</a></p>
  
  <p>Please share your thoughts. I am very interested in learning from your experiences. </p>
  
  <p>My current case is i am trying to rearrange <a href="http://gridster.net/" rel="nofollow">gridster</a> grid elements. i can use pure javascript to do so, but after a 2nd thought i wanted to try SASS logic, for example giving certain elements a class that the generated CSS from SASS will make them arranged as predefined. </p>