Need your help! - Optimize companies webpage

For everything that's not in any way related to PureBasic. General chat etc...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

The company i made my practical course atm, assigned me to check and optimize all links/images/and other stuff of there webpage! Now i have an archive with all html and image stuff packed in a about 3,5 MB zip! Its ofcourse a lot of work to check any html documents, all its links and used graphics! What i am searching for, is a very good tool to say the index.html and this tool will remove all not needed html/image stuff or copy all needed stuff a new folder! I heared that there are some tools around (esp. webpage builders) which will and can optimize this nearly good... Only problem is that there is a lot of java stuff too and inside the javastuff are calls to html/images and so on too... If someone know a good and maybe easy to use tool, please tell me (links would be nice too)... Many many thanks in advance!


greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by dmoc.

Java or JavaScript (or even VBScript?)? Is the site online?

Edit: One thing I have done in the past, if the site is live, is to webwhack it on to your local drive. Not always appropriate but may help reduce the amount that you need to trawl through.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Mhhhh.. as i know only javascript (due fact java isnt for html coding, isnt it?)... I´m not sure if there is any VBscript or other things too. Yes, the site is online and now i am working on a not existing online shop for this company and a complete redesign of there web pages and products! I also have to optimize first all unneeded stuff (gfx/html/js/ccs i.e) and when my shop system and all other product sites are finished, we will set the new shop/homepage online. (its my first step into online shop developing - but it make a lot of fun and is very interested and ofcourse a lot of work for planing, design, make graphics, photos and so on - esp, when its the first shop system u ever work on :wink:

Isnt there any good tool?? Nobody who can help me out please. For any, even small tip i would be very happy.



greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Let me see if i understand, you need to:

1.- Get the list of every image called by some web page so you can get out images that dosent has any call?

2.- Check if the links on your pages are valid?



Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Sorry for my bad explaining about the stuff i want to do! You are right ricardo - thats exactly what i need! A program that delete automatical not needed images/links would be the best! The program have to check for all links (even links inside a linked site, if you understand what i mean), images, js.scripts, ...



greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

It's difficult if any of the images get loaded using variables, like:

Code: Select all

document.image[0].src = whateverVariableName+".jpg"
El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Then you could do yourself the application that you need... i think :)

Just need to parse every page and whenever find a link to a file (image, script, etc) move those file to a folder, at the end the files that wasnt moved are not used...

Make a list of every link founded to be sure!



Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by dmoc.

Hence my suggestion to webwhack the live site! Especially useful if the site is large to get an initial idea of what may or may not be being used.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Many thanks @ all for your helping hand. I will take a look and hope that i get the stuff finish for monday... I have to work @ home at weekend to finish this stuff... happy coding :wink:

greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by koehler.


Sorry, to late for you. However, the demo of DreamWeaver by Macromedia does just this. Checks for 'orphan' files, and links that attempt to link to .html files not existing.

Even if you are done with your project, you might want to take a copy of their existing sie, and run it through anyways.

--
1980 Applesoft Basic, '81 6502 Assembler, '82 Pascal, '96 C, '00 Blitz Basic
2003 Pure Basic - History does repeat itself.
Post Reply