jQuery Plugin – Pace

在很多年以前,大家一定都看過整個利用Flash來完成的網頁,因為這樣的網頁檔案會比較大一些,所以在進入時總會有個讀取進度的畫面來讓人判斷目前頁面讀取了多少,但在如今行動裝置處處皆是的狀況之下,全Flash的頁面已經不符合現代人的閱讀需求了,所以現在流行的「單頁式網頁」就僅僅是利用HTML、CSS、javascript…等前端網頁語法來完成的,但如果希望網頁檔案漂亮,又要符合RWD(自適應網頁設計),就還是有可能會讓整個網頁載入的檔案變得比較大一些,今天就跟大家來分享一個jQuery的外掛,這個外掛可以很方便地幫我們在這樣的頁面上加上載入進度,而且不用寫任何的程式唷!

pace 官網截圖
pace 官網截圖

這個外掛的名稱是Pace,大家可以先到他的官方網頁備用載點)上面去下載所需要的PACE.JS和CSS,而CSS的部分主要是拿來決定載入進度的外觀,官網大概提供了14種樣式的CSS讓我們使用。

pace 官網下載說明圖
pace 官網下載說明圖

下載完成後只需要將CSS和JS引用進我們的網頁即可,比較需要注意的是因為這是網頁載入進度,所以最後須要把網頁上傳到網路空間之後,才可以比較正確的看到讀取的效果。

<script type="text/javascript" src="pace.min.js"></script>
<link rel="stylesheet" type="text/css" href="pace.css"/>

參考馬老師製作的範例網頁

You may also like...

16,001 Responses

  1. Disabled WC表示:

    I think you have a great page here… today was my first time coming here.. I just happened to find it doing a google search. anyway, good post.. I’ll be bookmarking this page for sure.

  2. informatii interesante si utile postate pe blogul dumneavoastra. dar ca si o paranteza , ce parere aveti de inchirierea apartamente vacanta ?.

  3. some jewelry stores offer a good deal of bargain for their new jewelry styles,,

  4. This is a topic that’s close to my heart… Best wishes! Where can I find the contact details for questions?

  5. Thank you, I have recently been searching for info about this topic for a while and yours is the best I’ve discovered till now. However, what in regards to the bottom line? Are you certain about the supply?

  6. RobertUnmab表示:

    buying cheap clomid without dr prescription: where buy generic clomid tablets – buying cheap clomid no prescription

  7. Hello amazing people! Believe in the power of self-confidence. You possess everything you need inside you.

  8. Way cool! Some very valid points! I appreciate you penning this post and also the rest of the website is very good.

  9. You ought to take part in a contest for one of the best websites on the web. I most certainly will highly recommend this blog!

  10. After study several of the web sites on the site now, we truly much like your technique of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls have a look at my site likewise and tell me how you feel.

  11. There couple of interesting points in time in this post but I don’t know if all of them center to heart. There is certainly some validity but I am going to take hold opinion until I take a look at it further. Excellent write-up , thanks so we want much more! Put into FeedBurner as well

  12. gas plumber表示:

    Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how could we communicate?

  13. You made some decent points there. I looked on the net for that issue and found most people will go coupled with with your internet site.

  14. Ufabet表示:

    An fascinating discussion is worth comment. I feel that you need to write extra on this topic, it might not be a taboo subject but typically persons are not enough to speak on such topics. To the next. Cheers

  15. RobertUnmab表示:

    zithromax 250 mg pill: zithromax z-pak – buy zithromax 500mg online

  16. I was very pleased to uncover this web site. I need to to thank you for ones time just for this fantastic read!! I definitely appreciated every bit of it and i also have you book-marked to look at new information in your blog.

  17. Hello beautiful souls! Believe in the wonders of new beginnings. Each day is an opportunity.

  18. Way cool! Some very valid points! I appreciate you penning this post and also the rest of the website is also really good.

  19. Barr’s name was absent from the state’s ballot on election day.

  20. You got a very wonderful website, Sword lily I found it through yahoo.

  21. RobertUnmab表示:

    cost clomid without insurance: how to get clomid without prescription – cost of clomid without dr prescription

  22. Hey there! Seize a breath to appreciate the wonder within you. You are genuinely remarkable.

  23. clay garden pots are great but if you want a cheaper alternative, you can always use those plastic garden pots`

  24. I’ve read several good stuff here. Certainly worth bookmarking for revisiting. I wonder how much attempt you place to make the sort of magnificent informative site.

  25. Sweet site, super design and style , really clean and apply genial .

  26. RobertUnmab表示:

    buy misoprostol over the counter: Abortion pills online – Cytotec 200mcg price

  27. 라카지노表示:

    I quite like reading an article that will make men and women think. Also, many thanks for allowing for me to comment.

  28. Markdob表示:

    Куда съездить отдохнуть? – http://www.coveredbridgecountry.com/ct-menu-item-3

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。