hellachella / dsn1675-project-1

Project 1, Web Dev II, Business Card.
0 stars 0 forks source link

Performance. #1

Open hellachella opened 9 years ago

hellachella commented 9 years ago

Hi @thomasjbradley

I am doing something wrong. My favicon is taking the longest? I think I've used a deprecated code to link it maybe?

I also have pretty much made my images 0 quality. They are still being ridiculously slow. I've smooshed and resized and compromised quality.

The background image (bw-xl-pic) is only present on the large screen sizes and the image is around 95k so it shouldn't be affecting the tablet and lower breakpoint sizes. Right?

Was it better to use CSS filters than 2 images/opacity as done?

?

Thanks!

screen shot 2015-10-08 at 12 05 16 am
hellachella commented 9 years ago

I have worked it over until it is here:

screen shot 2015-10-08 at 1 00 53 am

I don't think I can get it smaller without seriously damaging the images.

thomasjbradley commented 9 years ago
hellachella commented 9 years ago

Ok

I have made the images load in time, and I have applied the optimized google font fix that you recommend, however the fonts are still taking ages.

I am having trouble making the srcset work. It isn't displaying anything? I even watched outside tutorials..

screen shot 2015-10-08 at 10 00 53 am screen shot 2015-10-08 at 9 58 55 am

@thomasjbradley

thomasjbradley commented 9 years ago

For the srcset, I'd have something like this for your images:

<img  src="images/img-placeholder-240px.jpg" srcset="images/img-placeholder-360px.jpg 360w, images/bw-xl-pic.jpg 960w" alt="">

For the fonts, yes, web fonts are extremely slow. If you want to go ahead to 3rd year material, there's a section on advanced performance, specifically two videos on making fonts work faster: