Jump to content

Handling huge content results


jsky

Recommended Posts

Ok, I'm currently developing a web application that handles huge contents. In my main page i have 3 panes, each with different functions to show dynamic results (from a search template).

 

I have a problem in loading the entire page because it first waits for all of the 3 divisions to be processed before showing their results. I would like to load the first two panes first, cause the last one is not that necessary and has the function that returns the largest result.

 

Im thinking of using AJAX but is it advisable in this case? Tnx!

 

 

Link to comment
Share on other sites

You could use Ajax, but make sure you understand what other issues this could cause if you do. I don't know your audience, you do....

 

The other potential option would be using some iframe trickery. Instead of DIVs, you might use an iframe so that the content is loaded into each frame (page) accordingly, without causing the rest of the page to wait.

Link to comment
Share on other sites

Thanks for the reply! What other issues? My audiences are lawyers btw and the contents im talking about are laws/cases. I am new to iframes and my functions are all dependent on that page...

 

If I place ajax on the div that takes the longest to load, would it make that other divs load without waiting for the whole page? Tnx!

Link to comment
Share on other sites

By audience I just mean if it's people coming to the site by chance, you don't know if they have javascript enabled or not. If you know a defined set of users... and they're okay with the requirement, it's not a big deal. There are just some potential drawbacks with Ajax that you should just be aware of when making your decision.

 

I would think you could chunk your code into the appropriate pages easier than you could Ajaxify everything... but that's just a judgment call you'll have to make.

 

If you have the time, I'd suggest playing with both. If nothing else, you'll just expand your toolkit for future projects.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.