前端优化-服务器端-减少Http次数
在页面中除了内容图片以外的图片都是修饰图,去掉无意义修饰图或者用css替换秀试图效果是减少HTTP请求次数的有效方式。
一:css替换图片
圆角 阴影 渐变 等css效果在当前主浏览器中已得到广泛的支持,而在之前是通过图片来实现这些效果的,比如圆角按钮
圆角按钮相对来说只需要要一次HTTP请求,但是若是要求一个div层圆角了!之前是美工切四个角的图 ,最后再由我们在拼接完成的
,同时还得避免由兼容导致的不齐。在这里至少是4次HTTP请求了,所以能css实现的效果优先用css实现。
二:去掉无意义的图片
修饰图也就是对于传达信息来说是可有可无的,最大的优化就是不要图片!所以在优化之前要做的,就是和设计师确认设计,设计本
身是否需要用那么多图片?还是说可以更简洁。
优化导图我会不断的完善的,现在越来越每一个节点下面都可以分成很多个方面,很好的帮助自己记忆和理解。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.
