tha task is to optimize a provided website with a number of optimization- and performance-related issues so that it achieves a target PageSpeed score and runs at 60 frames per second.
To view the portfolio website download all the files and open index.html in your browser. To view the pizza website download all of the files and open views/pizza.html in your browser.
- move css to index.css.
- add media print to specific style link.
- load google analytic async
- load google fonts via js to solve blocking issue
- minified some images.
-
Changed all instances of querySelector to the more efficient getElementById and getElementByClassName depending on whether a class or id is needed.
-
inline css.