Page 1 of 1

Inline styling

Posted: Thu May 21, 2015 3:25 pm
by MariOiraM
Hello,

This was probably already a debate, but all I can find are older topics.
So, I am having a strugle with some seo factors.
Web application from seositecheckup is returning me this:
HOW TO FIX
In order to pass this test you must increase your text to HTML code ratio. Here are some techniques:
move all inline styling rules into a external CSS file
move your JavaScript code into a external JS file
use CSS layout instead of HTML tables
I am using oc 2 with custom theme Lamby.
Because i don't have all the necessary knowladge, i have no idea how to fix this.
So i would be really happy if somebody could give an instructions what to do and how to do it, to fix this issue.

Viva la opencart O0

Re: Inline styling

Posted: Sun Jun 14, 2015 7:44 pm
by MariOiraM
So noone answered but still, i found a small solution. By words of Google developers, you can add a word: "async" right before a code ends (for an example: <script src="catalog/view/theme/yourtheme/js/yourslider.js" type="text/javascript" async></script>

But this doesn't work perfect with all js scripts in header.tpl , some of them won't work correct if you add "async" so be careful.

That's why I am still trying to work on speed, because my google speed tests are lower than they should be, mobile 73 and desktop 75.

If anyone have some tips, you are welcome ;D O0