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

  1. Referral program accessible to increase your earnings however not neccessary to make money online.

  2. The above methods are too much of labor, effort and endurance – it will not be attainable for people or small to medium business house owners to fend for themselves.

  3. Anand opened with 1.e4, and Carlsen responded with the Caro-Kann Defence, his first time doing so in a competitive game since 2011.

  4. Useful assets and suggestions, along the e-book and at the end of it.

  5. So he did, and having him on it really makes the music come full circle for me.

  6. you have a very great weblog here! do you wish to develop invite posts in my blog?

  7. Other third moves for White such because the Konstantinopolsky Opening (3.g3), and Inverted Hungarian Opening (3.Be2) are rarely played and offer White no advantage.

  8. Therefore it drives the need to enhance more and more hospitality providers of a rustic.

  9. Paradox actively encourages modding, and the developers recurrently tweaked the sport as a way to make modding easier, furthermore there exist in-depth guides on the best way to mod in the Crusader Kings II wiki.

  10. The employees of Cartmell House for the Aged will likely be honorary pallbearers.

  11. The most effective time to explore the old medieval metropolis could be very early within the morning earlier than the innumerable vacationer shops open up.

  12. They deliver the very best practices to all the elements and strategically guide your agency by bringing implementation and growth at your event.

  13. Others promote ebook on how begin running a blog however we create blogs for you as bunus for becoming a member of out platform and likewise develop ecommerce website for you.

  14. Markdob表示:

    Куда съездить отдохнуть? – http://mofreemason.com/Salem225/

  15. An impressive share, I merely given this onto a colleague who had been doing a little analysis within this. And hubby in truth bought me breakfast since I found it for him.. smile. So ok, i’ll reword that: Thnx for your treat! But yeah Thnkx for spending some time to go over this, I am strongly regarding this and really like reading more about this topic. If possible, as you grow expertise, could you mind updating your site with a lot more details? It can be extremely useful for me. Large thumb up in this writing!

  16. It’s pretty self-evident that you simply can’t achieve goals if you’re not clear about what they’re.

  17. It is important to present all this info to those corporations as when they are cleared with the wants of purchasers, solely then they will plan things in a particular way.

  18. Visitation will likely be at 9 a.m.

  19. Courtney was recruited by producer Keith Barnfather in early 1993 and was eager to participate within the production, although he later admitted to finding it a challenge due to his age (being sixty five when manufacturing started) in addition to variations in single camera filming in comparison with the extra traditional multi-digital camera setup previously used on Physician Who.

  20. I believe so much of information is contained in the tone of the response, even if the phrases are simply “high-quality.” Consider it as a conversational calibration.

  21. pts 株価表示:

    The Day is Ours!

  22. Sport conditions ought to make logical sense and solutions ought to by no means depend on studying the designer’s mind.

  23. Hey there! Show kindness wherever you go, for compassion has the power to transform someone’s day. Your acts of kindness spread far beyond what you can see.

  24. It’s vitally vital for the lengthy-term future of the membership that we get this right and, in that sense, we are in no hurry.

  25. Alberta Ferretti has come to dominate this vogue week.

  26. Nf4 adopted an earlier sport won by Ding’s second Rapport, main Anish Giri to speculate that he had confused some of his preparation.

  27. I’m impressed, I must say. Actually rarely can i encounter a weblog that’s both educative and entertaining, and without a doubt, you might have hit the nail around the head. Your notion is outstanding; ab muscles something that there are not enough consumers are speaking intelligently about. I’m happy which i came across this in my look for something in regards to this.

  28. Member of Lebanon County Farm Girls Society, and Lebanon Area Truthful Queen Committee.

發佈留言

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