as stated in the title
as a front-end developer, I made a company website, and all the static pages were written (actually static pages). When the server is online, there are all kinds of problems:
- 1, the website font load is very slow, estimated to take three or four seconds to come out, mainly using the personality font (Pingfang SC, inside three, each is about 10m), the company"s website is also 5m speed, of course very slow. Finally, I communicated with UI and chose the system font for a better user experience.
I would like to ask: if you encounter such a problem, how do you deal with it?
- 2. The picture loads very slowly. Some of the pictures given by UI are in .svg format and some are in .png format. All the larger ones have 2Mmur3M, and the smaller ones also have 500KB--800KB.
solution: online compression, generally below 200KB, using online compression , which is acceptable. This site seems to be able to compress images a few more times, and then the size of the compression has not been reduced much, so it has only been compressed once.
excuse me: is image compression done by UI or front-end work? if it is front-end, is there a better compression tool?
- 3. In fact, it is the above files that affect the loading speed. There are other problems, such as: are there any other files on the website that need to be compressed by pdf? Do you want to compress those CSS and js, too?
the first time to do a website, do not have much experience, hope to get your advice!