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...

15,930 Responses

  1. KevinSounc表示:

    http://slotsiteleri.bid/# bonus veren slot siteleri

  2. I really like your wp template, exactly where would you get a hold of it through?

  3. This is undoubtedly one of the greatest articles I’ve read on this topic! The author’s extensive knowledge and passion for the subject are evident in every paragraph. I’m so grateful for coming across this piece as it has enhanced my comprehension and ignited my curiosity even further. Thank you, author, for investing the time to create such a outstanding article!

  4. Good day! I simply would like to give you a big thumbs up for your great info you have right here on this post. I’ll be returning to your blog for more soon.

  5. you are really a just right webmaster. The web site loading velocity is amazing. It sort of feels that you’re doing any distinctive trick. Also, The contents are masterwork. you’ve performed a excellent job in this matter!

  6. JesusLealt表示:

    sweet bonanza free spin demo: sweet bonanza slot – sweet bonanza

  7. An outstanding share! I’ve just forwarded this onto a friend who had been doing a little research on this. And he in fact ordered me lunch due to the fact that I discovered it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanx for spending time to talk about this issue here on your blog.

  8. Darrelherse表示:

    slot siteleri bonus veren: slot casino siteleri – slot casino siteleri

  9. Some genuinely interesting information, well written and loosely user friendly.

  10. Darrelherse表示:

    slot oyun siteleri: deneme veren slot siteleri – slot oyunlar? siteleri

  11. I like what you guys are up also. Such clever work and reporting! Keep up the excellent works guys I?ve incorporated you guys to my blogroll. I think it will improve the value of my web site 🙂

  12. I blog frequently and I genuinely appreciate your content. This article has really peaked my interest. I will bookmark your site and keep checking for new details about once per week. I subscribed to your Feed too.

  13. Thanks for your article. I would also love to opinion that the very first thing you will need to perform is find out if you really need credit restoration. To do that you will have to get your hands on a duplicate of your credit rating. That should never be difficult, considering that the government necessitates that you are allowed to obtain one totally free copy of your own credit report every year. You just have to request the right folks. You can either browse the website with the Federal Trade Commission or contact one of the major credit agencies directly.

  14. Good post. I learn something new and challenging on websites I stumbleupon on a daily basis. It will always be useful to read articles from other authors and use a little something from their websites.

  15. JeremyPsymn表示:

    https://easyrxcanada.online/# precription drugs from canada

  16. Hermanswoff表示:

    canadian pharmacy victoza: canada pharmacy 24h – best canadian pharmacy online

  17. Peterhew表示:

    reliable canadian pharmacy: global pharmacy canada – buying drugs from canada

  18. Peterhew表示:

    mexico drug stores pharmacies: buying prescription drugs in mexico online – mexico drug stores pharmacies

  19. 33win表示:

    You are so interesting! I do not think I have read through a single thing like this before. So wonderful to find someone with unique thoughts on this issue. Really.. many thanks for starting this up. This web site is one thing that is required on the internet, someone with some originality.

  20. Robertengep表示:

    https://mexstarpharma.com/# medicine in mexico pharmacies

  21. Robertengep表示:

    http://mexstarpharma.com/# mexican mail order pharmacies

  22. JeremyPsymn表示:

    http://easyrxindia.com/# indian pharmacy

  23. ngentot pepek表示:

    Hi, I do believe this is an excellent site. I stumbledupon it 😉 I am going to come back yet again since i have book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  24. Peterhew表示:

    cheapest online pharmacy india: indian pharmacy online – Online medicine home delivery

  25. Peterhew表示:

    medicine in mexico pharmacies: mexican mail order pharmacies – medicine in mexico pharmacies

  26. Hermanswoff表示:

    canadian pharmacy: canadian pharmacy checker – canadian pharmacy phone number

  27. sex表示:

    This blog was… how do I say it? Relevant!! Finally I have found something which helped me. Thanks a lot!

  28. The inspiration for the Quattro and the revolutionary all-wheel-drive technology came from a noted Audi engineer observing military vehicles performing in snowy conditions.

  29. JeremyPsymn表示:

    https://mexstarpharma.online/# purple pharmacy mexico price list

  30. You may additionally need supplementary heating within the bath, most frequently electrical.

發佈留言

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