02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

FireBug: The Net Tab

Our first view will be our net tab that focuses on the actual content that is transferring through the web when your web site opens. It is a great place to find broken images or items that you load that don't work %u2013 it's always a good idea to fix that type of information. It is where you can see the size of your overall site load as well. We talk about file sizes and why it is important to try to lower the amount of files you load and the size of them as well.

Video Transcript

00:00All right, so I want to continue on and just talk about the different tabs really quickly.
00:03I'm not going to go through everyone.
00:05So for example, a script tag, we're not going to talk about it all.
00:08This is really for developers.
00:10You shouldn't be needing to go in there.
00:13As an SEO person, you really would want to only go there if you're a developer.
00:16And the same is true of the console.
00:18We're just not going to talk about them at all, nor will we talk about the DOM.
00:21I think the console script DOM is the ones you probably want to avoid, mainly because
00:26they're just not relevant to you.
00:28They might look confusing, and they're really more targeted for developers to help them develop.
00:33While the HTML and the CSS tab, or more accurately, mainly the HTML tab, with the style element
00:38is really where you want to play with when you're exploring your page or other people's
00:42pages.
00:43Now, the only other tab that I want you to be familiar with, and even very familiar
00:47with, is the Net tab.
00:50Now the Net tab is so important.
00:51I'm going to refresh my page so we could get all the information, because right now
00:55Firebug wasn't open when we opened up the page, so it didn't list out all the different
01:01files that are being loaded.
01:02But if I click on the refresh button while the Net tab is open, you'll see that it's
01:06going to start listing out all the different components and all the different files that
01:10are being used for this page.
01:12Now obviously, as soon as you see I read something, that's a big no-no.
01:15That means that there's an image there that isn't loading.
01:18Now if there's an image that isn't loading, you want to fix that.
01:22You want to fix that or remove that image, because obviously this is a good indicator
01:26to Google that you're not maintaining your site well.
01:30You don't want to add more stress on your website if it doesn't need that stress.
01:34So you want to make sure that your developer, if you're not the developer, that you catch
01:38it.
01:39So if the developer makes this error, so once you're ready to check this HTML validation,
01:44you're ready to check there are no broken links, then you're checking that there's
01:46no broken assets, meaning that we're not trying to load an image that just doesn't
01:50exist or can't load, and obviously we want to fix that or by removing it or by updating
01:55it.
01:56All right.
01:57So now that we got that out of the picture, that's one of the biggest things you want
01:59to see here.
02:00The second biggest thing you want to look at is the file size.
02:03Now the total file size is, you know, you don't want to have a lot of files, and in
02:06our scenario, we have a not a crazy amount of files.
02:09We have a fair amount of files.
02:10Let me make this nice and big, because we don't, we're not really looking at the
02:13site anymore.
02:14We're only looking at Firebug.
02:15You can see our total size is 185K, and I can tell you that's a really good
02:20size.
02:21You will, you know, the biggest problem with websites a lot of times is that people
02:26want to put a lot into it.
02:28So they put a lot of images, they put a lot of content in it, and one of the biggest
02:32problems with a lot of content is that file sizes grow and grow and grow.
02:36The bigger your file sizes are on your website is a big negative.
02:42Now before I tell you why it's a big negative, I'm going to make this a little
02:44bit more interactive by asking Itamar to come up with a few reasons of why do
02:50you think that big size websites is a bad idea.
02:53Well, the first thing that comes to mind is loading times.
02:56Like, the larger the website is, the longer it will take it to load.
03:01Absolutely.
03:02And why do we care if there's a lot of files or not?
03:05Well, the more files you have, the bigger the size of the website.
03:11Also, a lot of files means cluttered design.
03:14So basically, it would distract your users when the page actually loads.
03:21So let me ask you a question, for example.
03:24And you're definitely in the right direction, there's just a little something
03:27missing here.
03:28So if, for example, I would go to this design and instead of loading this
03:32image, I would have loaded pixel by pixel, image by image.
03:35Now the file size, let's say, would be the same, or maybe even smaller.
03:40If I would load a thousand images instead of just ten images, my site would
03:44be only 100k, let's say.
03:46Okay, that just adds complexity.
03:50If one file doesn't work, then they will run damage.
03:52True.
03:53And beyond that, even more than that, I'll give you really the main
03:56reason why you want to try to keep the amount of files small.
04:00Every time you ask for a file from the server, it's not only the
04:04download of that file.
04:05The download these days are really fast.
04:08People have really fast devices in general.
04:10So let's say you have a 100k site, great, you're doing good.
04:13Even mobile devices would load it relatively quickly.
04:15Obviously, if you have a one megabyte site, we already said that's a big no-no.
04:19But let's assume we're in that one 200k range.
04:23The biggest problem is every time you hit the server for a file, you're
04:26basically picking up a phone, calling the server, saying, give me this
04:30file.
04:31The server gives you the file and then you disconnect the phone.
04:34That's how file transfers work.
04:36So actually the longest amount of time, the biggest amount of time it
04:39takes for high bandwidth users, the load time that it takes you when you're
04:44going onto a site is less about how long it takes to load the files, but
04:48how long it takes to call and hang up with the server.
04:51So if I have your 30 calls to the server, all right, so there's 30 calls
04:55to the server.
04:56But if I have 1000 calls to the server, both things are happening.
04:59One, it's slowing down my experience by default because now I have to make
05:03more communications with the server and I have to wait for more times
05:06that the server answers me.
05:08And two, which is even bigger than that, I'm adding a lot more stress on the
05:12server.
05:13So the servers have like a limited capacity, a limited amount of people that
05:16they could engage with at any given time.
05:18Every server has their limit.
05:20The more times you hit the server, the less users could hit your
05:24service.
05:25So if I have 1000 images that I'm loading at the same time for my
05:28server, I'm reducing the performance of my server for all users, unless
05:31I'm paying a shitload of money more for the server to make it
05:35available for more.
05:36So basically, you're reducing the optimization of the server itself,
05:40making your costs higher, making the speed of downloads higher, and
05:43making your general user experience lower.
05:45So a lot of times designers will get excited over big files and a lot of
05:49files and making designs that are complex, like you said.
05:53But if you're working with designers, you could explain it to them
05:57that way because it's the truth.
05:59The more images and the more complex your design is, the worse your
06:02user experience is, and that's one of the stuff that a lot of people
06:05don't notice or to big companies, and it does affect very, very
06:09drastically the performance of servers and very, very drastically
06:13overall experience of users.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!