web-optimization

Website Performance Optimization

Project @Udacity #frontendnanodegree

Step 1: Critical Rendering Path (CRP) Optimization

Scope: Optimize PageSpeed Insights score of at least 90 for Mobile and Desktop for index.html.

Defined the CRP Metrics and optimized them by:

Index.html now measures a score above 90 on PageSpeed Insights for both Mobile and Desktop devices.


Step 2: Frame Rate Optimization

Scope: Optimize views/js/main.js to make views/pizza.html render with a consistent frame-rate at 60fps when scrolling.

Changes made on views/js/main.js file:

Now, views/pizza.html renders with a consistent frame-rate at 60fps when scrolling.


Step 3: Computational Efficiency

Scope: Using the pizza size slider on the views/pizza.html page, resize pizzas in less than 5ms.

After tracing and idetifying the performance issue in DevTools/Timeline, I found that an FSL was causing the high resize time of the pizzas.

Changes made on resizePizzas function in views/js/main.js:


Step 4: Minification of CSS and JS, and Image Optimization

Scope: Download, configure and implement task runner on the project using Grunt.

How to run Grunt on this project?