Hey Graham,
My suggestion is for you to put your Google font code in the Before /head
(before the end of the head section) in your master page markup. Here’s why…
CSS code is “stackable” - that is, every call to CSS code meshes with every
previous call to CSS code… it’s something known as the CSS Cascade. If you
look just in the head area of your page code, you will see several CSS
calls (which are similar in appearance to your Google font code). This is
fairly normal in page code and absolutely normal in FWP page code. Now,
browsers read this code from top to bottom - in order - so the browser gets
style information from the first CSS style link, then adds the information
from the second, third, and so forth until it builds up all the information
needed to display the page.
What can happen is, if any of these CSS stylesheets contain conflicting
style codes, the browser uses the information from the last one loaded.
If you or an action inadvertently place font information into a stylesheet
that loads after the Google CSS link, then the browser will simply ignore
the Google code. Placing the Font code just before the end of the Head
section (before /head in the markup) give it the best chance to avoid
mishap.
As to whether it compromises web performance - browsers are pretty
forgiving. I would give you an F for it, but Chrome and Safari can still
figure it out. However, it’s not a guarantee that it will always slide, nor
that building websites like a Jenga tower is a very smart thing to do -
especially as the fix is just so very simple and quick.
As a bonus, you might go back to Google fonts and load all those fonts and
styles at the same time, producing one line of code to paste into your
markup instead of three. I’d give A+ for that
–
Ernie Simpson
On Thu, Aug 7, 2014 at 12:41 PM, Graham Meigh email@hidden
wrote:
The Big Erns. Whoosh! Straight over my head there, didn’t even have to
duck!
I get the gist of what you are saying but will it compromise the website
performance?
In other words should I rectify this and if so how?
Thanks.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options