Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8351341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:36:11+00:00 2026-06-09T08:36:11+00:00

I have a client side app I’m working in which Im’ using jQuery 1.7.x,

  • 0

I have a client side app I’m working in which Im’ using jQuery 1.7.x, Backbone and Underscore. The app has many columns and as the window is resized I need to adjust the DOM to push or pop a column. I’m running into an issue of how to manipulate the DOM reliably on the window resize, given that events take time to fire, the event stack takes time to clear and that the DOM’s column count needs to be considered. Oh and I am using the helpful underscore debounce method with my resize listener and the defer method for these particular events which need to fire.

On a window resize I need to pop columns if they don’t fit horizontally. In the case where the window was shrunk faster than the resize listener fired I need to do some dom cleanup in order for everything to fit.

  • Is it better to loop through the columns on the DOM on each resize trigger and calculate the fit_width inside a loop of the current DOM columns and pop if necessary? Might a new resize event change/interrupt things?

  • Or is it better to fire the pop_column_if_too_wide on each resize trigger for the number of columns on the DOM?
    this seems bad…

Handling everything through event triggers would be nice but the _.defer which I depend on isn’t reliable enough for a fast calculation on a current loop’s iteration since the event stack may have not yet been cleared. Hence it might end up firing the event for the same module twice.

Perhaps there’s even a better way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:36:12+00:00Added an answer on June 9, 2026 at 8:36 am

    Do they really need to be removed from the dom? Can’t you just hide them? That, IIRC, can be done purely through css and media queries… (of course you’ve got that condition “if the column is too wide” which might be tricky if taken very strictly)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a custom behavior extension which i'm using in my client side app.config
I have a ASP.Net web app with jquery implemented on the client side. within
I have the following backbone.js client side template: <script id=calleeTemplate type=text/x-jquery-tmpl> <tr style=background-color: ${StatusColour}>
I working on a client side app. I have been working non-stop for the
I have an app working with databases on both server side and iOS client
I'm working on a web app which is heavy on the client side, which
Suppose I have a client side app that sends out requests to a rails
I have designed a webpage using HTML and client side validation using JavaScript.PHP for
I have an online service which uses a java applet to perform client side
I plan to write web app which will work mostly on client side (AJAX)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.