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,463 Responses

  1. CurtisBam表示:

    Indian pharmacy that ships to usa: Indian pharmacy international shipping – Online medicine

  2. Carrolleruck表示:

    https://mexicaneasypharm.com/# Mexican Easy Pharm
    canada pharmacy 24h

  3. This methodology assigns every shopper a credit score rating between 300 and 850, with the average rating falling round 720.

  4. Brandonnot表示:

    canada drugstore pharmacy rx: Canadian Md Pharm – pharmacy wholesalers canada

  5. CurtisBam表示:

    indian pharmacy: Online medicine – IndianCertPharm

  6. Various kinds of the flower develop as excessive as two to 2 and one-half toes tall and blossom 12 to 18 inches broad.

  7. He says economists typically consider that labor and management reached an optimum arrangement with the institution of a five-day work week and an eight-hour work day.

  8. AlvinJexia表示:

    Эта разъяснительная статья содержит простые и доступные разъяснения по актуальным вопросам. Мы стремимся сделать информацию понятной для широкой аудитории, чтобы каждый смог разобраться в предмете и извлечь из него максимум пользы.
    Выяснить больше – https://nakroklinikatest.ru/

  9. CurtisBam表示:

    reliable canadian pharmacy reviews: CanadianMdPharm – reputable canadian online pharmacies

  10. Brandonnot表示:

    Mexican Easy Pharm: reputable mexican pharmacies online – mexican pharmaceuticals online

  11. LarryReupt表示:

    best canadian online pharmacy Canadian Md Pharm canadianpharmacyworld

  12. This trend seems to be just starting, but it may be that in the future, you’ll need to judge whether you should also sell your wares in physical locations, becoming a true “omnichannel” retailer.

  13. AndreDib表示:

    canadian pharmacy price checker https://mexicaneasypharm.shop/# Mexican Easy Pharm
    india online pharmacy

  14. CurtisBam表示:

    best canadian pharmacy online: canadian online pharmacy reviews – canadian pharmacy world

  15. The majority of local governments have a guidance value to assist investors in determining a property’s cost.

  16. gay porn表示:

    Introducing to you the most prestigious online entertainment address today. Visit now to experience now!

  17. Brandonnot表示:

    mexican online pharmacies prescription drugs: Mexican Easy Pharm – mexico pharmacies prescription drugs

  18. resources表示:

    I’m amazed, I have to admit. Rarely do I come across a blog that’s both equally educative and entertaining, and let me tell you, you’ve hit the nail on the head. The problem is something not enough people are speaking intelligently about. Now i’m very happy I came across this during my search for something regarding this.

  19. Mrs. Robert Ehren of Paris, Ark.; 4 brothers, Lowell of Texarkana, Leonard of Mena, Virgil of Tulsa, Okla.

  20. CurtisBam表示:

    Mexican Easy Pharm: mexico pharmacies prescription drugs – Mexican Easy Pharm

  21. AndreDib表示:

    pharmacy canadian superstore https://mexicaneasypharm.com/# Mexican Easy Pharm
    india pharmacy

  22. Brandonnot表示:

    mexican drugstore online: buying prescription drugs in mexico – Mexican Easy Pharm

  23. LarryReupt表示:

    canadian pharmacy ratings Canadian Md Pharm canadian pharmacies compare

  24. CurtisBam表示:

    Indian Cert Pharm: Best Indian pharmacy – Indian pharmacy that ships to usa

發佈回覆給「dom prestarelih v simferopole_igkt」的留言 取消回覆

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