Another Noobly Question [CSS3 and HTML5]

300 lines for a .css is very tiny, just btw.

That is just for example purposes, the actual css files are well over 5000 lines each, but that not the point, thank you for your previous explanation, that is how I understand it too.


I have a new question that might be better, how do I identify what the "Above-the-Fold CSS" is then I will only include that in the html page before I reference the external style sheets
 
I'll be honest. This is the first time I am reading about above and below the fold.

How I understand it now is...

Above the fold: The portion of the page that you can see.

Below the fold: The portion of the page you can not see (When you start scrolling, or overflows that pop up on click).

If your pages are small enough to fit the screen, then all of that is Above the fold.

Am I understanding this correctly?
 
I think you need to simplify this as much as possible.

You know you need to load certain classes before others. No one else can figure this out for you, and you can't figure out "critical" classes unless you define them.

Create a critical.css, load it first. Then load the rest.

It's really that simple.
 
I think you need to simplify this as much as possible.

You know you need to load certain classes before others. No one else can figure this out for you, and you can't figure out "critical" classes unless you define them.

Create a critical.css, load it first. Then load the rest.

It's really that simple.

They are all pretty fcking critical in my opinion hehe.
 
Maybe I should just link to the website and then you guys can run it in page speed test and see what i am trying to fix?
 
Header + background + block elements as critical. The rest as non crit.

flyboy.jpg

<style>
CRITICAL STYLES
</style>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">

That might do the trick. Rather take other peoples advice though. This is new to me too.
 
Header + background + block elements as critical. The rest as non crit.

View attachment 237572

<style>
CRITICAL STYLES
</style>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">

That might do the trick. Rather take other peoples advice though. This is new to me too.

Those are two images, can't really put that in the <head> section?
 
Not the images, the styles that are placing those images there.

HTML:
<div class="row">
  <div class="col-lg-6 hidden-sm hidden-xs">
      <a href="reseller.html" class=""><img src="/img/resellerbtn.png" class="img-responsive" alt="Responsive image"></a>
  </div>
  <div class="col-lg-6">
      <img src="/img/banner.png" class="img-responsive" alt="Responsive image">
  </div>
</div>
 
So instead of having the styles "col-lg-6 hidden-sm hidden-xs, col-lg-6" in your css file. add it in the Head.
 
So instead of having the styles "col-lg-6 hidden-sm hidden-xs, col-lg-6" in your css file. add it in the Head.

Mmmmm, if this works it would be insane cool and weird

Okey I'll do it and let you know.


Also I see the fontawesome.min file is causing the k@k taking almost 1.7 seconds
 
Made no difference at all, actually slowed down the loading of index.html by 12ms
 
Absolutely no reason to have css in the head that is not included via <link> tags
 
Top
Sign up to the MyBroadband newsletter
X