Nio 的個人網站

這是Nio的個人記事網站,同時也兼作開發技術嘗試。如果在觀看的時候發現有錯誤,請不吝動手告訴我
Notebook   >>  網站技術
Nivo Slider notes deal with the problem in chrome or Safari

Do you hav previous image reloads during transition in Chrome ?

Recently the kit NivoSlider in jQuery welcomed by many websites, and also to spend the last few cases of this package are normal in appearance almost every browser, but if in Chrome and safari use webkit core browser will find the exchange diagram, the original graph will flash, then the following figures will enter.

If you look at the server log file, you will find the chrome will be each time you change the map once again load the picture is because each picture to reload the picture will flash, in addition to constantly reload the picture website content charges of unnecessary bandwidth.

Know that after this point you can start from the image cache, if it is php or program output image file
First joined

header("Cache-Control: private, max-age=1800");

This line allows the browser to use the cache, but! Chrome or invalid, must be supplemented

header("Pragma: cache");

To make the chrome to access the cache.
This not only solve the traffic wasted problems solved field effect flashing.
進階搜尋
找商品說明
價錢: -
此分類無可選擇屬性

會員登入