jQuery Plugin – Pace
在很多年以前,大家一定都看過整個利用Flash來完成的網頁,因為這樣的網頁檔案會比較大一些,所以在進入時總會有個讀取進度的畫面來讓人判斷目前頁面讀取了多少,但在如今行動裝置處處皆是的狀況之下,全Flash的頁面已經不符合現代人的閱讀需求了,所以現在流行的「單頁式網頁」就僅僅是利用HTML、CSS、javascript…等前端網頁語法來完成的,但如果希望網頁檔案漂亮,又要符合RWD(自適應網頁設計),就還是有可能會讓整個網頁載入的檔案變得比較大一些,今天就跟大家來分享一個jQuery的外掛,這個外掛可以很方便地幫我們在這樣的頁面上加上載入進度,而且不用寫任何的程式唷!
![pace 官網截圖](http://cloudlab.tw/wp/wp-content/uploads/2015/02/pace-1.png)
這個外掛的名稱是Pace,大家可以先到他的官方網頁(備用載點)上面去下載所需要的PACE.JS和CSS,而CSS的部分主要是拿來決定載入進度的外觀,官網大概提供了14種樣式的CSS讓我們使用。
下載完成後只需要將CSS和JS引用進我們的網頁即可,比較需要注意的是因為這是網頁載入進度,所以最後須要把網頁上傳到網路空間之後,才可以比較正確的看到讀取的效果。
<script type="text/javascript" src="pace.min.js"></script> <link rel="stylesheet" type="text/css" href="pace.css"/>
參考馬老師製作的範例網頁
Porn
Viagra
Hello there! This article could not be written any better! Looking at this post reminds me of my previous roommate! He constantly kept preaching about this. I am going to send this article to him. Fairly certain he will have a great read. I appreciate you for sharing!
I needed to thank you for this excellent read!! I certainly enjoyed every bit of it. I’ve got you book marked to check out new stuff you post…
Porn site
Buy Drugs
Porn
Oh my goodness! Awesome article dude! Thanks, However I am going through difficulties with your RSS. I don’t know why I cannot subscribe to it. Is there anyone else having similar RSS issues? Anyone who knows the answer will you kindly respond? Thanks!!
Scam
Sex
Porn site
There is certainly a great deal to know about this subject. I really like all of the points you have made.
Buy Drugs
Porn site
Scam
Viagra
Viagra
Porn
Porn
noroxin usa – order confido generic order confido pill
Sex
Всем привет! Может кто знает, где найти разные статьи о недвижимости? Пока нашел https://konditsioneri-shop.ru
Viagra
Pornstar
Scam
Pornstar
Howdy, There’s no doubt that your web site could be having web browser compatibility issues. Whenever I take a look at your website in Safari, it looks fine however, when opening in I.E., it’s got some overlapping issues. I merely wanted to give you a quick heads up! Besides that, wonderful site!
Can I simply say what a relief to discover someone who genuinely knows what they’re discussing over the internet. You definitely understand how to bring a problem to light and make it important. More people ought to check this out and understand this side of the story. I was surprised that you are not more popular because you definitely have the gift.
Right here is the right web site for everyone who hopes to find out about this topic. You know so much its almost tough to argue with you (not that I actually will need to…HaHa). You definitely put a fresh spin on a subject that’s been discussed for a long time. Great stuff, just wonderful.
Viagra