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

14,703 Responses

  1. RobertZopof表示:

    mexican mail order pharmacies: mexican online pharmacies prescription drugs – mexican rx online

  2. RobertZopof表示:

    mexican border pharmacies shipping to usa: reputable mexican pharmacies online – mexican rx online

  3. Williamdet表示:

    https://mexicanpharmacy1st.online/# mexican online pharmacies prescription drugs

  4. Thomasfrape表示:

    mexican pharmaceuticals online: mexican pharmaceuticals online – medication from mexico pharmacy

  5. Williamdet表示:

    http://mexicanpharmacy1st.com/# buying from online mexican pharmacy

  6. KennethProra表示:

    https://mexicanpharmacy1st.online/# mexican online pharmacies prescription drugs

  7. RobertZopof表示:

    best online pharmacies in mexico: mexico drug stores pharmacies – best mexican online pharmacies

  8. ManuelinceX表示:

    reputable mexican pharmacies online mexico drug stores pharmacies reputable mexican pharmacies online

  9. Williamdet表示:

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

  10. Thomasfrape表示:

    medicine in mexico pharmacies: reputable mexican pharmacies online – buying prescription drugs in mexico online

  11. RobertZopof表示:

    medication from mexico pharmacy: mexican mail order pharmacies – mexican border pharmacies shipping to usa

  12. RobertZopof表示:

    best online pharmacies in mexico: mexico drug stores pharmacies – best mexican online pharmacies

  13. Williamdet表示:

    https://mexicanpharmacy1st.online/# п»їbest mexican online pharmacies

  14. Williamdet表示:

    https://mexicanpharmacy1st.shop/# mexican pharmaceuticals online

  15. KennethProra表示:

    https://mexicanpharmacy1st.com/# mexican border pharmacies shipping to usa

  16. RobertZopof表示:

    medication from mexico pharmacy: best mexican online pharmacies – mexican rx online

  17. Williamdet表示:

    https://mexicanpharmacy1st.online/# buying prescription drugs in mexico online

  18. ManuelinceX表示:

    mexico drug stores pharmacies mexico drug stores pharmacies reputable mexican pharmacies online

  19. RobertZopof表示:

    mexican border pharmacies shipping to usa: mexican mail order pharmacies – mexican drugstore online

  20. RobertZopof表示:

    mexican pharmaceuticals online: mexico pharmacy – mexican border pharmacies shipping to usa

  21. Williamdet表示:

    https://mexicanpharmacy1st.com/# best online pharmacies in mexico

  22. KennethProra表示:

    https://mexicanpharmacy1st.com/# buying from online mexican pharmacy

  23. Williamdet表示:

    https://mexicanpharmacy1st.shop/# buying prescription drugs in mexico

  24. Thomasfrape表示:

    buying prescription drugs in mexico: mexican drugstore online – medication from mexico pharmacy

  25. AlbertBlelf表示:

    mexican border pharmacies shipping to usa: reputable mexican pharmacies online – mexican rx online

  26. RobertZopof表示:

    mexico pharmacy: mexican rx online – mexico pharmacy

  27. AlbertBlelf表示:

    purple pharmacy mexico price list: mexican rx online – purple pharmacy mexico price list

  28. Williamdet表示:

    https://mexicanpharmacy1st.online/# reputable mexican pharmacies online

  29. AlbertBlelf表示:

    п»їbest mexican online pharmacies: buying from online mexican pharmacy – buying from online mexican pharmacy

  30. ManuelinceX表示:

    mexico drug stores pharmacies pharmacies in mexico that ship to usa mexico drug stores pharmacies

發佈留言

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