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

20,355 Responses

  1. Kennethslity表示:

    https://generic100mgeasy.com/# buy generic 100mg viagra online

  2. WilliamNop表示:

    cheap viagra: Cheap Viagra 100mg – Generic Viagra online

  3. TerryDus表示:

    https://kamagrakopen.pro/# Kamagra Kopen Online

  4. I blog quite often and I genuinely appreciate your content. The article has truly peaked my interest. I am going to bookmark your blog and keep checking for new information about once a week. I opted in for your RSS feed as well.

  5. kycnot me表示:

    546256 778329But yet another intelligent weblog! Completely cannot wait for a great deal more! 767475

  6. Kennethslity表示:

    https://tadalafileasybuy.shop/# Cialis without a doctor prescription

  7. GregoryJough表示:

    Tadalafil Easy Buy: Tadalafil Easy Buy – TadalafilEasyBuy.com

  8. GregoryJough表示:

    Generic100mgEasy: buy Viagra online – buy generic 100mg viagra online

  9. Dwayneseisa表示:

    kamagra kopen nederland kamagra gel kopen Officiele Kamagra van Nederland

  10. Kennethslity表示:

    https://kamagrakopen.pro/# kamagra gel kopen

  11. Dwayneseisa表示:

    п»їcialis generic Buy Tadalafil 5mg cialis without a doctor prescription

  12. Интересная статья, в которой представлены факты и анализ ситуации без явной предвзятости.

  13. What Would you like To achieve?

  14. WilliamNop表示:

    kamagra jelly kopen: Kamagra Kopen – Kamagra

  15. TerryDus表示:

    https://generic100mgeasy.shop/# buy generic 100mg viagra online

  16. Kennethslity表示:

    http://generic100mgeasy.com/# Generic 100mg Easy

  17. GregoryJough表示:

    TadalafilEasyBuy.com: cialis without a doctor prescription – TadalafilEasyBuy.com

  18. GregoryJough表示:

    Cheap Cialis: TadalafilEasyBuy.com – Tadalafil Tablet

  19. ArebPaish表示:

    writing an analytical paper https://essentialhunt.com/ professional paper writer

  20. Kennethslity表示:

    https://generic100mgeasy.com/# Generic 100mg Easy

  21. WilliamNop表示:

    kamagra gel kopen: kamagra 100mg kopen – kamagra pillen kopen

  22. Dwayneseisa表示:

    Generic 100mg Easy Generic100mgEasy buy generic 100mg viagra online

  23. TerryDus表示:

    https://kamagrakopen.pro/# KamagraKopen.pro

  24. Kennethslity表示:

    http://generic100mgeasy.com/# buy generic 100mg viagra online

  25. Dwayneseisa表示:

    buy generic 100mg viagra online buy generic 100mg viagra online Generic100mgEasy

  26. Hi! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly? My blog looks weird when viewing from my iphone. I’m trying to find a theme or plugin that might be able to fix this issue. If you have any recommendations, please share. Many thanks!

  27. GregoryJough表示:

    TadalafilEasyBuy.com: Tadalafil Easy Buy – cialis without a doctor prescription

  28. GregoryJough表示:

    Buy Tadalafil 5mg: cheapest cialis – Tadalafil Easy Buy

  29. Kennethslity表示:

    https://kamagrakopen.pro/# Kamagra Kopen

發佈留言

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