Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Client gone SEO mad

Featured Replies

I have a client who has been researching SEO (as I'm no expert) but has been sending me SEO stuff for the past 6 months to impliment on their site and we have seen gradual improvements which is great.

 

However, one thing the client has asked me to do is reduce the whitespace in the html code. He's found a tool called HTML Optimizer which the client has asked me to use, however, when inputting neat code such as:

<html>

<head>
<title> favorites / bookmark title goes here </title>
</head>

<body bgcolor="white" text="blue">

<h1> My first page </h1>

This is my first web page and I can say anything I want in here - I do that by putting text or images in the body section - where I'm typing right now 

</body>

</html>

 

it returns the following:

 

<!-- This HTML code has been optimized by http://www.iwebtool.com/html_optimizer --> <html>  <head> <title> favorites / bookmark title goes here </title> </head>  <body bgcolor="white" text="blue">  <h1> My first page </h1>  This is my first web page and I can say anything I want in here - I do that by putting text or images in the body section - where I'm typing right now   </body>  </html>

 

Now obviously, the actual site is much more complex than the code posted above but my main concern is that the code is very untidy and as such will be more difficult to make any changes in the future.

 

Does anyone have any thoughts on this?

 

Thanks

I would suggest having two copies of the files depending on the size of the site, everytime you need to do an update do it to the easier to read code then compress and upload the compressed file.

  • Author

i cant see how that doesnt help for SEO purposes?

It works by reducing the amount of time it takes to load the page, hence working alongside googles new 'speed' rules.

It works by reducing the amount of time it takes to load the page, hence working alongside googles new 'speed' rules.

 

 

but surely it wouldnt that big a difference in file sizes??? do u have any figures on the differnce?

I think you'd be far better served by optimising the code rather than compressing it. For example, use a single stylesheet for all styles, and use CSS sprites wherever possible to reduce hits on the server. You'll definitely see a boost in performance while still having nice usable HTML.

  • Author

I think you'd be far better served by optimising the code rather than compressing it. For example, use a single stylesheet for all styles, and use CSS sprites wherever possible to reduce hits on the server. You'll definitely see a boost in performance while still having nice usable HTML.

Thanks for your suggestion. The only CSS files are one for 'screen' and one for 'print'. Don't know alot about CSS sprites so will look into that.

yeap. i would 2nd that. sprites will reduce the load time alot more then compressing your code. i would say compressing ur code would save very little in load time.

Its to do with site speed which is a minor ranking factor, I would think that there are better things to look at in the first instance.

 

The site title in your snippet seem rather uninspired for instance.

It seems all a bit tad obsessive, I guess if they ask for it you give it to them. So just keep two copies as suggested above!

  • Author

Its to do with site speed which is a minor ranking factor, I would think that there are better things to look at in the first instance.

 

The site title in your snippet seem rather uninspired for instance.

The snippet is example code, not the actual website :)

 

Use gzip compression on your server or similar if you need to reduce the page weight

gzip is already in use on the server.

  • Author

How big are yout html documents just out of interest?

The largest html file is 58KB

  • Jo 90 locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.