Closed BenjaminRCooper closed 10 years ago
Good call.
B
Looking good.
Is it worth adding the lang attribute to the html tag? Could be useful if we work towards multilingual sites in the future.
Tim
Another good call
Good shout Tim.
How about we drop in a meta tag to force IE to render in it's latest engine or chrome frame if installed?
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Haven't really found any pitfalls with using it over the past 12 months or so.
Yeah, was going to add it, just never had any experience so couldnt see the benefits.
Will do that too
B
I haven't implemented the chrome frame attribute value, as I feel it is a very small majority of people who have this installed, and it being deprecated as of January 2014
Ben
No worries, i haven't checked Chrome frame since the beginning of the year so didn't know it was on it's way out. This looks good to me though, if everyone else is happy i'll merge this in?
@lewismorris @Passenger-Inspired This should be put into a .htaccess file, it breaks HTML validation.
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
This should cover it:
<FilesMatch "\.(htm|html|php)$">
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</IfModule>
</FilesMatch>
Good shout mate :)
Should really look into adding some rules to a base .htaccess file, which I think will come from our performance standards.
Hope the family are good mate :)
Get off GH, going look after little benji james park ;)
Ben
Good shout on the .htaccess John, I didn't realise it didn't validate, just goes to show the last time I checked a site for validation :)
Would it be worth including -
Question on this, adding this to the htaccess file is not going to make to much of a difference, as this will not be picked up by an Nginx server anyway right?
With regards to the validation issue, I don't see it being too much of an issue, validation is not as important as it used to be and it does not stop the page from rendering anyway.
B
I believe your correct @Passenger-Inspired this wont work on a Nginx server, there may be a convertor online that'll provide the correct version?
+1 on the validation, i don't think it's massively important. As long as your markup as a whole validates the odd meta tag should not really make any difference imo.
Added a sections partial directory to contain global site element styles such as; header, footer and sidebar styles.
Thoughts?
B
If everyone is happy with this, i'll merge it in? +1 from me.
Putting add_header "X-UA-Compatible" "IE=Edge,chrome=1";
in the nginx server block will work just the same.
That's a one for the sysadmin, however.
Let's keep it within the HTML directly, as we know how hard it is to get something done that end.
Also, having it within the HTML will mean it is not forgotten, where as if we did it this way, it would need to be added for every project.
Ben
Hey Ben,
This looks good, only changes i would possibly make are the following;
Change
.page-wrapper
to.wrapper
just makes it more re-usable in my opinion, but i'm open to discussion on this.Also on the boilerplate removing
I'm more than certain we won't be testing under IE8 and in the rare case in which we do we these can be manually added into the template.