A
A
Artyom Kan2018-04-10 17:09:09
Layout
Artyom Kan, 2018-04-10 17:09:09

How do you feel about the layout standard on GlavWeb?

Hello colleagues.
Quite by accident I came across one article on GlavWeb in 2016 from Andrey Nilov.
Here is the link: glavweb.ru/ru/knowledge-base/standardty-html-verstki
Is it worth it to follow all the points of this article directly, if it seems to me that there are "jaws" there?
Examples:

- move the connection of CSS and JavaScript at the end of the HTML page, before the closing "body" tag (where possible);

I believe the .css should be included at the end of the HEAD tag. I think a lot of people do just that.

Web browser support:
- Google Chrome - latest version;
—Opera is the latest version;
—Mozilla Firefox is the latest version;
—Safari is the latest version;
—Internet Explorer is the latest version;
—Microsoft Edge is the latest version.

Well, yes ... these are the cross-browser compatibility ...
using preprocessor "LESS";

Not a word about my favorite scss (or at least sass), even the ability to write without a preprocessor in small projects.
using the "Gulp" build system.

It's comfortable. I am for Gulp, but mandatory usage is weird...
Or is this article just from the distant past?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-04-10
@webinar

I believe the .css should be included at the end of the HEAD tag. I think a lot of people do just that.

Yes, many people do just that, but this does not mean that it is right. As I understand it, the author means that there should be minimal css (critical) and the rest. In order not to slow down the loading of content, we remove everything that is not critical from the head. Thus, we speed up the loading of the page. You don't have to, of course, but it's good advice.
LESS is an analogue (a matter of taste, who bothers using the other), and scss and sass are basically the same thing, only with different syntax.
If it is convenient, then why not be sure to use it? And why not use it where it is not convenient. You speak contradictory. In any case, the advice to use gulp is correct, as an option there are other assemblers, but I, for example, use it.
just the opposite. Preprocessors, assemblers, svg, ECMAScript 6 - everything is fresh (relatively of course), at least nothing newer has come to replace them yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question