Cameron Pittman's portfolio website has been optimized
- Serve on localhost If you're familiar with python run these commands on your terminal
git clone https://github.com/Sh4reef/fend-mp.git
cd fend-mp
sudo python -m SimpleHTTPServer 80
Open your browser and navigate to http://localhost or http:/127.0.0.1
- Live website Here
index.html
- External link to
style.csshas been removed, Implemented internal<style>instead. - Added
rel="dns-prefetch"attribute<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="dns-prefetch">. - Added
media="print"attribute<link href="css/print.css" rel="stylesheet" media="print">. - Added
asyncattribute<script async src="https://www.google-analytics.com/analytics.js"></script>.
main.js
- Removed
determineDx()function. - Refactored
changePizzaSizes()andupdatePosition()functions. - Refactored DOM elements calls, And use
getElementById(),getElementByClassName(). - Moved some variable declaration outside the loop.
pizza.html
- Fixed the image.
style.css for pizza.html
- Added
backface-visibility: hidden;property withhiddenvalue.