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

  1. Scottdaurf表示:

    пин ап казино вход: пин ап зеркало – pin up

  2. It’s difficult to find knowledgeable folks with this topic, however you be understood as do you know what you’re speaking about! Thanks

  3. Ytggpv表示:

    diclofenac 100mg over the counter – diclofenac order buy generic aspirin 75 mg

  4. Scottdaurf表示:

    пин ап: пин ап – pin up casino

  5. there are tanning lotions which are very hard on the skin, i always use organic tanning lotions-

  6. Spot lets start on this write-up, I honestly think this site wants considerably more consideration. I’ll apt to be again to learn much more, thanks for that info.

  7. Darrelherse表示:

    slot casino siteleri: deneme veren slot siteleri – oyun siteleri slot

  8. ounce of weed表示:

    I quite like reading through an article that can make men and women think. Also, thank you for allowing for me to comment.

  9. I’m impressed, I have to admit. Seldom do I encounter a blog that’s both educative and engaging, and let me tell you, you’ve hit the nail on the head. The problem is something that too few folks are speaking intelligently about. I am very happy that I came across this during my search for something relating to this.

  10. Darrelherse表示:

    en iyi slot siteleri: deneme bonusu veren siteler – deneme bonusu veren siteler

  11. I’ll immediatelpy tawke hol off your rss fed as I can’t too fijnd your email suubscription link oor e-newsletter
    service. Do you have any? Kindly allow mee recognize so that
    I may subscribe. Thanks.

  12. KevinSounc表示:

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

  13. In February 2002 RSA set aside £384 million to double its reserves available for asbestos claims which, combined with claims of £215 million arising from the 11 September assaults, wiped out its 2001 income.

  14. If your plan’s investment menu is not limited in this regard, a plan advisor should be able to implement strategies similar to those used in non retirement accounts to best achieve the stated investment goal of the model.

  15. Efforts to revamp the worldwide financial system after World Battle II improved trade charge stability, fostering record development in world finance.

  16. Many thanks for creating the effort to talk about this, I feel strongly about this and love learning a great deal more on this subject. If feasible, as you gain knowledge, would you mind updating your website with a great deal more information? It’s extremely beneficial for me.

  17. In 1962, The brand new Yorker revealed a collection of essays by Rachel Carson, later printed in book type as Silent Spring, that publicized the damaging effects of pesticide use on wildlife.

  18. U.S. Hannon Deutsch (October 30, 2005).

  19. 2007. (Sept. Lifehacker, June 2011.

  20. Itemizing Advertisements is a straightforward but efficient method to spice up the visibility of your products and it will show you how to to achieve your buyer base.

  21. There a few fascinating points with time in the following paragraphs but I do not know if I see these center to heart. You can find some validity but I will take hold opinion until I investigate it further. Very good post , thanks and then we want much more! Included in FeedBurner also

  22. Greetings! Very helpful advice within this article! It’s the little changes which will make the most significant changes. Thanks for sharing!

  23. Consequently, the power is renamed Cooper Area at A. E. Finley Stadium.

  24. It was owned by Gospodarski Vestnik (50), Dagens Industrie (45), and several other people (5).

  25. For example, most credit monitoring services include an option to track your credit score.

  26. This w​as cre ated by G​SA Con tent  Generator ​DE MO.

  27. From their first day of work, Microsoft staff knew that their compensation could be directly tied to the success of the corporate.

  28. The same year, Celestica announced its first U.S.-based acquisition: Hewlett-Packard’s Fort Collins, Colorado printed circuit assembly (PCA) operation.

  29. The ultimate report of the Nationwide Monetary Commission was printed on January 11, 1911.

發佈留言

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