Image loading

UltimeWWW

Verified User
Joined
Sep 10, 2003
Messages
217
Location
Montreal
Hi,

I was looking at some sites and I noticed with DA the images are loading one at the time...not like Ensim or any other panel: all in one.

Do you have an idea why?

Thank you.
 
put the exact same page on another server, clear your cache and compare... should be no difference...
 
Hello,

DA doesn't currently have the "HEAD" (similar to GET and POST)request method implemented, so servers can't ask DA when the images were last modified, so they end up downloading it again. I'll add the method when time becomes available, but for now, you can try out out speedy "power_user" skin if you want to speed things up :)

John
 
UltimeWWW said:
Please someone, help me!

Example: http://www.consolefighter.com

All images load one at the time...

Images generally load one at a time unless your browser has them cached. Those of us who remember the good old 56k days will remember Internet Explorer saying 568 items remaining... or 568 images left to load :D
 
can you show us that page on a NON-DA server?

I think the problem is, the images are large in comparison to some other sites possibly, for example look @ prowebuk.com, the images actually load 1 at a time but it goes through them very quickly as they are small files and the backgrounds in the header are 1x1 TINY images

Your "console fighter" TEXT ONLY logo is larger than 20 of these:

pw_uk_header_r3_c3.gif


around 8x larger than this:

shot_pugcc1.gif


and that text image on its OWN is over 2x the size of all images on the prowebuk homepage put together...... some nice stats for you there ;)

my suggestion would be to optimize them images :)

Chris
 
Ryan said:
Images generally load one at a time unless your browser has them cached. Those of us who remember the good old 56k days will remember Internet Explorer saying 568 items remaining... or 568 images left to load :D

172800 seconds remaining... :D
 
i'm having and noticing the same problem.
it's not just with directadmin, but also with the sites hosted.
i think it might be some common apache httpd setting.
i moved a site from one hosting provider not using da to one using da.
it seems images have to be reloaded or redownloaded every time you visit a page. this happens not on just the first visit, but i think on every visit.
i'm pretty sure it isn't my browser's cache settings.
this is one of the first things i noticed with direct admin during a direct admin demo.

here's how you might recreate or see this problem.
go to a website using da. preferably with a couple of images.
on the first visit the page should load and the images should load. on ie6 you should see blank spaces where the images are going to load.
then on the same site navigate to another page by clicking on some link.
then find the link to the previous page (like the home link) and click it. normally, or the way i want it to look, the page should load as if you hit the back button. there shouldn't be blank spaces where the images are going to load. i shouldn't notice the images reloading.
on da site i notice images being reloaded or re downloaded.
on other sites the images don't have to be redownloaded and it just appears.

one example is the directadmin.com forums.
by going to http://www.directadmin.com/forum/ i can notice the little bullet icon images (it's not just for huge images) loading as if it is the first time i'm visiting the page.
 
Hello,

With apache, it would either be your browser's cache, or the headers from the website itself (apache doesn't control caching, the website does).

As for DA, it imposes no caching, so that would by why. I'll see about taking that out for IMG_* files. (Will greatly speed things up for slow connections :))

John
 
DirectAdmin Support said:
Hello,

With apache, it would either be your browser's cache, or the headers from the website itself (apache doesn't control caching, the website does).


i'm pretty sure it's not the browser's cache.
how would i change settings for the headers from the website itself?
 
Last edited:
here's some examples..
compare the following:

1.) ...

2.) ...

on the first visit, the images should load regularly. then if you refresh 1. the images reload and if you refresh 2. it doesn't.
instead of refreshing press "Events" on the black bar.

edit: the problem seems to have gone away...
 
Last edited:
Odd, on my end, they load linearly one after the other for both servers.. One server *is* faster loading, but they still load one after the other. For both, when I press "reload" (F5), the page instantly pops up and nothing is re-downloaded, thus everything is cached. Anyone else have comments?

To change the caching on php pages, you'd just add:
PHP:
header("Cache-Control: no-cache");
For example. That disables caching.. there are other options to enable it.


As for DA, I've just changed the caching rules for images, and I must say that the difference is night and day. SSL is slow in general (must reconnect for each image), but since this change was made, the images are read from cache and the whole site pops up instantly fast. I've also made some major changes to the "flow" for loading certs, so it's done only once per DA startup, instead of once per request (large overhead).

If you check out the versions page you'll see many improvements:
http://www.directadmin.com/versions.php?version=1.197000

1.197 is going to be a "big" release with noticable improvments across the board :D:D

John
 
Code:
root@vodka [/var/log]# ab [url]http://www.ultimeweb.net/[/url]
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, [url]http://www.zeustech.net/[/url]
Copyright (c) 1998-2002 The Apache Software Foundation, [url]http://www.apache.org/[/url]

Benchmarking [url]www.ultimeweb.net[/url] (be patient).....done
Server Software:        Apache/1.3.29                                      
Server Hostname:        [url]www.ultimeweb.net[/url]
Server Port:            80

Document Path:          /
Document Length:        4069 bytes

Concurrency Level:      1
Time taken for tests:   0.007 seconds
Complete requests:      1
Failed requests:        0
Broken pipe errors:     0
Total transferred:      4299 bytes
HTML transferred:       4069 bytes
Requests per second:    142.86 [#/sec] (mean)
Time per request:       7.00 [ms] (mean)
Time per request:       7.00 [ms] (mean, across all concurrent requests)
Transfer rate:          614.14 [Kbytes/sec] received
root@vodka [/var/log]# ab [url]http://ultimeweb.net/[/url]
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, [url]http://www.zeustech.net/[/url]
Copyright (c) 1998-2002 The Apache Software Foundation, [url]http://www.apache.org/[/url]

Benchmarking ultimeweb.net (be patient).....done
Server Software:        Apache/1.3.29                                      
Server Hostname:        ultimeweb.net
Server Port:            80

Document Path:          /
Document Length:        4069 bytes

Concurrency Level:      1
Time taken for tests:   0.005 seconds
Complete requests:      1
Failed requests:        0
Broken pipe errors:     0
Total transferred:      4299 bytes
HTML transferred:       4069 bytes
Requests per second:    200.00 [#/sec] (mean)
Time per request:       5.00 [ms] (mean)
Time per request:       5.00 [ms] (mean, across all concurrent requests)
Transfer rate:          859.80 [Kbytes/sec] received
root@vodka [/var/log]#
 
Back
Top