General Jingdong IOUs how to set

Flower chanting white striped \ / channel service: [331,575,644], staging music withdrawal, XIN mention card seconds ,, to staging, ease flowers, wayward pay various threshold withdrawals, flower chanting, white bars \ / Service letter: [315756443] professional second back section quickly, the operation can be face to face, a remotely operable! Quick and simple payment process, operating without professional card to get a few minutes alone!

Plus the first screen to open the page display speed front end so that we have been pursuing the goal, and css resources in these optimizations is also indispensable.
A site may have a part css resources is a must, he needs to be loaded completely finished before page rendering and parsing and html together, this is temporarily unable to play tricks, but we can put some non-critical css asynchronous technology, that is, asynchronous loading.
There are many tools to achieve this effect, such as loadCSS

The asynchronous loading to say this, in fact, is loadCSS used in the following code:

The Copy
<Link the rel = "this stylesheet" the href = "/ path / to / my.css" Media = "Print" the onload = "this.media = 'All'">
code is very simple, wise, one can understand :

Initialized for the print type, when loaded, the media set to full application platform

But how about this relationship and asynchronous get it?

Because the browser will determine whether the current resource application, and then decide the priority, as we have adopted it is a rare type of print, so the browser identification, will not affect the way the current page rendering load according to media: asynchronous

Some may talk about preload, preconnection, prefetch such rel, but because browser support vary, so lines need more operations to make up for their compatibility.

And they are different, preload can cause the browser to load the resource priority becomes the highest, loadCSS will be changed to low.

(Finish)

Some common operations #

Guess you like

Origin www.cnblogs.com/dfdf55/p/12113820.html
Recommended