- Clone or download this repository
- Click index.html
####The changes I made ######index.html
- Inline CSS.
- Adding
async
to<script>
. - Adding
media
attribute.
######main.js
1.Moving the variable definition out of the for loop.
2.Using getElementById
to substitute getElementsByClassName
.
######other Compress the size of pictures.