Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
loading in sequence, really stuck
Old 11-10-2008, 03:49 PM loading in sequence, really stuck
Novice Talker

Posts: 6
Name: Kees
Trades: 0
I am really stuck...
First some info:
I am creating a site with many, many ,many users. I would like to display all avatar/foto's with a little text on popup, in one huge page (don't ask me why, but this is unnegotiable unfortunately).
If there are about 2000 members, the loading time will be around 2 seconds.
But when the amount of members will increase, let's say to 10000, the page is around 8Mb and the loading time...well...it wouldn't load at all here cause my browsers didn't like it....

So now I can do two things:
1. Load the page in parts
Than my question is 'how'? Is there maybe a possibilty with any program to load for example pane by pane? (So that the next pane will load after the prior pane and so on)
2. Approach the thing completely else;
Now I use a thumb (via css, so the thumb needs to load only once)
and a popup via a javascript. And let this repeat over and over again via a while statement within php.
Has anybody an idea if it can be done else/better?

What is important is that it can contain a maximum of a million members,
and that the first view(let's say 500 members) is loaded as fast as possible (and load further on in the background).

Is there anyone who can advise/help me?
It would be really, really appreciated!
erict21 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-11-2008, 04:55 AM Re: loading in sequence, really stuck
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
very simple answer.

You can't.

1: Client browser makes a request to server, server sends HTML stream. That's it. that's the HTTP protocol.

2:
Quote:
But when the amount of members will increase, let's say to 10000, the page is around 8Mb and the loading time...well...it wouldn't load at all here cause my browsers didn't like it.
PRECISELY! there is a PHYSICAL limit to how much data can be cached by browsers.

What the client wants is simply impossible given the technology available.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-11-2008, 07:23 AM Re: loading in sequence, really stuck
djura's Avatar
Super Talker

Posts: 135
Name: Darko Krsmanovic
Location: Belgrade
Trades: 0
Quote:
Originally Posted by erict21 View Post
I am really stuck...

1. Load the page in parts
Than my question is 'how'? Is there maybe a possibilty with any program to load for example pane by pane? (So that the next pane will load after the prior pane and so on)
You can do this with Ajax.
__________________

Please login or register to view this content. Registration is FREE
||
Please login or register to view this content. Registration is FREE
djura is offline
Reply With Quote
View Public Profile Visit djura's homepage!
 
Old 11-11-2008, 07:55 AM Re: loading in sequence, really stuck
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by djura View Post
You can do this with Ajax.
Technically, yes it could.

In reality. NOT A CHANCE!

10 or 12 iterations of loading the code for 500 images per time and the browser be out of resources.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-13-2008, 02:50 AM Re: loading in sequence, really stuck
Novice Talker

Posts: 6
Name: Kees
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Technically, yes it could.

In reality. NOT A CHANCE!

10 or 12 iterations of loading the code for 500 images per time and the browser be out of resources.
Djura/Chrishirst,

Thanx for your reactions!
Chris I know what you mean by this..., but....
Meantime I have not been sitting still
I also thought about Ajax and also about even only javascript maybe.
What I am thinking of to try now, is this:

- Create a big div and let a background image load (with 'repeat on' in the css). This background image is a screenshot of the first opening page/pane.
Now it will look like if there are thousands of members. In reality it's just the same page/image repeated.
- Within this huge div, I will create smaller div's (f.e. 1000x1000px with 300members), which needs to load on hovering over this part of div. (Data will be retrieved from the database via php).
Via this way, only one page/pane will load at a time, while unloading the one that you leave.

Remaining question than is...
Will this be possible with ajax/javascript, and will the page really unload out of the cache after leaving it with the mousepointer...

Any comments are welcome

(When I figured out if this is possible, I will post the code/solution here)

Last edited by erict21; 11-13-2008 at 02:55 AM..
erict21 is offline
Reply With Quote
View Public Profile
 
Old 11-13-2008, 03:45 AM Re: loading in sequence, really stuck
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
With basic javascript ALL the images and text would have to load into the browser memory space initially, leaving you no better off.

Loading the images "on request" with a mouseover would prevent it running out of memory resources. Though I can't see a 1000 x 1000 pixel matrix of mouseovers being very "useable"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-13-2008, 11:23 AM Re: loading in sequence, really stuck
Novice Talker

Posts: 6
Name: Kees
Trades: 0
Chris, I managed to succeed....
I used javascript in combination with Iframes and a little php.
I also tested it with 10000 members.

What I have now have is definately a huge difference;
Now a pane from 1000x500px will load on the iframe where you hover.
Apperently it is unloading the visited iframe/page, cause it will remain fast in all cases (offcourse the waiting time is allways there for retrieving the 300 members I now have on every pane).

I need to make my code a little prettier, but I will post it later on.
You'll never know who might be interested later on

Offcourse I want to thank you for your concern...

Best regards Eric

Last edited by erict21; 11-13-2008 at 11:24 AM.. Reason: writing fault
erict21 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to loading in sequence, really stuck
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.32994 seconds with 12 queries