Mobile app version of vmapp.org
Login or Join
Harper822

: Trying to improve code-text ratio without a catch-22 My website has several subdomains with it that represent each major section of the website and I have that to allow search engines to understand

@Harper822

Posted in: #Code #Links #Seo #Url #UserFriendly

My website has several subdomains with it that represent each major section of the website and I have that to allow search engines to understand what each section is about.

My problem lies with the calendar and photo gallery section of my site, each having its own subdomain.

Now when I recently checked my code/text ratio, most pages report lower than the required 15% which is probably why my adsense RPM is almost zero.

On each calendar page I have roughly 300 words, but whats killing me that I can't remove are the CSS sprites. The website is mostly image focused. On the calendar page, I have events which refer to URL's on the photo gallery subdomain, so I have links similar to photo-galleries.example.com/albumname/date/page-number/numberperpage
So I feel now my only options are the following:


Either restructure the URL's to make them shorter and a lot less friendly and/or meaningful (so I could have something like: photo-galleries.example.com/albumshortcode/mmddyyyy/nn/nn)

OR


make ridiculously short accessible URL's in the current domain so that anchor tags like this will work:

day one


If I choose #2 , then the code/text radio will be fabulous but the server will have to work harder to process redirect pages.

If I choose #1 , then I risk losing ranking in search engines for favoring a less-friendly URL.

I have already removed comments and unnecessary code.

I'm not exactly asking for code for an answer. I'm just asking based on what I mentioned here, how I can improve the code-to-text ratio on my website so that search engines don't believe I'm writing code only for robots.

Any ideas?

If not, then I think I'll have to revamp a whole set of links which is what I didn't plan on doing.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper822

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

The text to code radio claim is one of the bigger myths out there on search engine optimization. What actually matters is the page load time not the ratio of text to code. If you have a lot of code compared to the text in your site this still isn't inherently a problem until the amount of code you have is causing significant load time issues.

Google publishes a tool called Page Speed Insights which can be found at developers.google.com/speed/pagespeed/insights/ which is designed to identify issues with your page speed and what is causing the issues and help provide advice on how to correct the page speed issues. As a general rule of thumb pages with a speed insight speed profile in yellow or red will have difficulty ranking as highly as sites with a green speed profile but this is only a general rule of thumb and not a hard and fast rule. As an example with two websites I have worked on in the past for two government departments in two separate states which do the same thing (emergency services websites), one site which has a better insight score actually has a lower SERP rank than the other. The good site actually has a really poor (in the red) insight score but ranks better based on content, whereas the other site (which ranks highly in the green) with an insight score, actually has a much lower SERP rank.

What this demonstrates is that while page speed is important (as Google has said before) for your SERP ranking, the content of your page is more important than page speed.

Focusing specifically on your question there is no real reason to do any of the options you have questioned about, instead run your site through the PageSpeed Insights's tool and it will give you ideas on what Google thinks of your page speed and where it suggests improvements. Generally instead of messing around with URL's which don't really affect the code to text ratio in any meaningful way regardless, there will be other more important improvements to make such as shifting rendering-blocking javascript and CSS in above the fold content and shifting it to the bottom of the page where possible, as well as leveraging browser cache, optimising images, minifying CSS, javascript, and HTML, and reducing server response time.

As a side note the insights tool also has a built in tool to optimise your static content and let you download the optimised content to upload to your site.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme