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

  1. WilliamNop表示:

    Generic 100mg Easy: buy generic 100mg viagra online – cheap viagra

  2. pg168表示:

    157525 990699Great beat ! I wish to apprentice even though you amend your web internet site, how can i subscribe for a weblog internet site? The account aided me a appropriate deal. I had been a bit bit acquainted of this your broadcast provided bright clear thought 565553

  3. pg168表示:

    940079 600029Im not that considerably of a internet reader to be honest but your blogs truly good, keep it up! Ill go ahead and bookmark your website to come back within the future. All the very best 942847

  4. pg168表示:

    526110 303350wonderful work Superb weblog here! Also your web internet site a lot up fast! What internet host are you the usage of? Can I get your associate link on your host? I want my internet site loaded up as quick as yours lol 854857

  5. pg168表示:

    575528 697069Outstanding read, I just passed this onto a colleague who was performing a bit research on that. And he actually bought me lunch as I identified it for him smile So let me rephrase that: Thank you for lunch! 814940

  6. 770162 260528This website is genuinely a walk-through it truly may be the details you wanted concerning this and didnt know who to inquire about. Glimpse here, and you will completely discover it. 551023

  7. TerryDus表示:

    https://kamagrakopen.pro/# Kamagra Kopen

  8. Kennethslity表示:

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

  9. GregoryJough表示:

    Generic100mgEasy: Generic100mgEasy – Generic 100mg Easy

  10. Kennethslity表示:

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

  11. GregoryJough表示:

    cheapest cialis: cialis without a doctor prescription – Cialis 20mg price in USA

  12. A 2011 study argued that, beneath the situations that have been out there on this cave, it will’ve taken wherever from 500,000 to 900,000 years to grow a selenite crystal measuring 3.2 toes (1 meter) in diameter.

  13. Dwayneseisa表示:

    Generic100mgEasy Generic 100mg Easy Generic100mgEasy

  14. WilliamNop表示:

    kamagra jelly kopen: KamagraKopen.pro – Kamagra

  15. Dwayneseisa表示:

    buy generic 100mg viagra online Viagra tablet online Generic 100mg Easy

  16. WilliamNop表示:

    Kamagra Kopen Online: kamagra pillen kopen – kamagra kopen nederland

  17. If any of your children are disabled and getting Disability Dwelling Allowance (DLA), Private Independence Cost (PIP), Child Disability Cost or Grownup Incapacity Cost, you’ll also get further cash for them.

  18. TerryDus表示:

    http://tadalafileasybuy.com/# TadalafilEasyBuy.com

  19. Kennethslity表示:

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

  20. Make time to usually join with the people in your life, whether it’s via cellphone calls, textual content messages, emails, or in-particular person conversations.

  21. Kennethslity表示:

    http://tadalafileasybuy.com/# TadalafilEasyBuy.com

  22. GregoryJough表示:

    Kamagra: kamagra 100mg kopen – Kamagra

  23. GregoryJough表示:

    Tadalafil price: TadalafilEasyBuy.com – TadalafilEasyBuy.com

  24. chicken road表示:

    326563 762508This style is steller! You clearly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (nicely, almostHaHa!) Great job. I actually enjoyed what you had to say, and more than that, how you presented it. Too cool! 915455

  25. mpokopi表示:

    Aw, this was a really good post. Finding the time and actual effort to produce a top notch article… but what can I say… I put things off a lot and never seem to get nearly anything done.

  26. They discover the perfect venue and suppliers to suit totally different tastes, necessities and finances and likewise fulfill all of your travel needs- from airport transfers to lodges bookings.

  27. ArcdPaish表示:

    pay for college essay https://miorix.com/ aiauthor

  28. Статья содержит информацию, основанную на достоверных источниках и экспертных мнениях.

  29. Wine Institute. “World Wine Production by Country – 2009.” Trade Data and Analysis.

發佈留言

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