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
https://forums.phpfreaks.com/topic/90857-handling-huge-content-results/
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.

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!

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.