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

13,036 Responses

  1. iptv表示:

    Way cool! Some extremely valid points! I appreciate you writing this write-up plus the rest of the site is also really good.

  2. I absolutely love your blog and find many of your post’s to be just what I’m looking for. can you offer guest writers to write content to suit your needs? I wouldn’t mind writing a post or elaborating on many of the subjects you write concerning here. Again, awesome web site!

  3. iptv表示:

    An interesting discussion is worth comment. I believe that you ought to write more about this issue, it may not be a taboo subject but generally folks don’t talk about such subjects. To the next! Cheers.

  4. Всем привет! Подскажите, где найтиполезные статьи о недвижимости? Сейчас читаю https://varmex-spb.ru

  5. iptv表示:

    Pretty! This has been a really wonderful article. Many thanks for supplying this info.

  6. Porn表示:

    Pornstar

  7. Porn表示:

    Porn site

  8. Porn表示:

    Porn site

  9. Porn表示:

    Buy Drugs

  10. Thanks for your helpful post. Over time, I have been able to understand that the actual symptoms of mesothelioma cancer are caused by a build up of fluid between lining in the lung and the breasts cavity. The sickness may start while in the chest area and pass on to other limbs. Other symptoms of pleural mesothelioma include fat reduction, severe deep breathing trouble, vomiting, difficulty swallowing, and inflammation of the face and neck areas. It really should be noted that some people existing with the disease tend not to experience just about any serious signs and symptoms at all.

  11. porn表示:

    Everything is very open with a precise description of the challenges. It was really informative. Your site is very useful. Thank you for sharing.

  12. Domdob表示:

    Всем привет! Может кто знает, где найтиразные блоги о недвижимости? Пока нашел https://krovli-12.ru

  13. Porn表示:

    Buy Drugs

  14. jog表示:

    In a country with more heart than most anywhere on Earth, it’s no wonder that the biggest highlight of the country are its people. As the world has turned much more attention to the area, interest has also risen in dating singles from the Ukraine—both locally and internationally. If you’re looking for an international dating site that is targeted solely towards meeting Ukrainian singles, you’ve come to the right spot. Not everyone on dating apps is looking for a forever love, and not everyone who swipes right is going to be the right fit for you — but understanding that doesn’t make getting ghosted or mismatched any easier. Dating apps, like social media-writ-large, can act as a “playground for your anxieties,” says Brammer. In our opinion, yes. Paid dating sites often come with added features and benefits making it easier and quicker to find your perfect match. For instance, opting for Tinder Gold and Tinder Plus allows you to unlock features like the Tinder passport, meaning you can swipe right on anyone anywhere in the world, rather than just your local area. It also gets rid of ads, gives you unlimited likes and you can even see who likes you before swiping on them, meaning you get to be more selective.
    https://andrecedc863186.review-blogger.com/50033371/elite-dating-websites
    Women love a good laugh, and your bio can attract several prospects if you use the correct phrase. So, here are some clever Tinder bios that will initiate a conversation with the ladies: Here are 10 steps to write a perfect hot Tinder bio; If there’s one thing Tinder is good for, it’s finding a potential hookup — fast. Trust that if these are your intentions, there’s no shame in making this very clear in the bio. If you’re DTF, a sexy Tinder bio is the best way to get the point across. Thanks to Tinder, you can simply swipe right and hope the other person does, too. Then you can start the conversation by using pickup lines to break the ice. I once had to judge a tighty-whitey contest for Lambda Kappa Pi. Trust me, I can handle quarantine. Adding a few emojis with such Tinder bios never goes amiss, too. 

  15. Good day! I could have sworn I’ve visited this web site before but after going through many of the articles I realized it’s new to me. Anyways, I’m definitely delighted I found it and I’ll be book-marking it and checking back regularly!

發佈留言

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