<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>JQuery on Lin's Blog</title><link>https://coder.tw/categories/jquery/</link><description>Recent content in JQuery on Lin's Blog</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Wed, 27 Apr 2011 19:15:30 +0000</lastBuildDate><atom:link href="https://coder.tw/categories/jquery/index.xml" rel="self" type="application/rss+xml"/><item><title>【jQuery】Lazyload - 延遲圖片載入</title><link>https://coder.tw/posts/jquery-lazyload/</link><pubDate>Wed, 27 Apr 2011 19:15:30 +0000</pubDate><guid>https://coder.tw/posts/jquery-lazyload/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-27_191427.jpg"&gt;&lt;img class="size-large wp-image-429 aligncenter" title="2011-04-27_191427" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-27_191427-540x481.jpg" alt="" width="540" height="481" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;在攝影類的網站通常會放很多的圖片，當訪客瀏覽這類網站時就要開啟蠻久的，因為要載入很多的照片，這對於網站主機的流量影響蠻大的，而且會造成訪客瀏覽時的CPU Time增加很多，在這裡要介紹一套叫做Lazyload的jQuery插件，它可以延遲圖片的載入，也就是說當你進入到一個網站時，並不會一次載入所有的圖片，而是只載入一部分的圖，當你拉動瀏覽器的捲軸時，它會載入「你正在看的區塊的圖片」，所以網頁的載入速度就會變得比較快&lt;/p&gt;</description></item><item><title>透過jQuery.qrcode直接在瀏覽器產生QR Code</title><link>https://coder.tw/posts/jquery-qrcode-in-browser/</link><pubDate>Fri, 08 Apr 2011 15:42:44 +0000</pubDate><guid>https://coder.tw/posts/jquery-qrcode-in-browser/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-08_153812.jpg"&gt;&lt;img class="size-large wp-image-389 aligncenter" title="2011-04-08_153812" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-08_153812-540x357.jpg" alt="" width="540" height="357" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;要繪製QR-Code有很多種方法，可以自己寫函式去繪製，也可以使用別人提供的API來繪製，例如使用Google Chat API來產生QR Code就是用API的方法，而在這篇文章要講的jquery.qrcode則是使用別人撰寫好的函式來產生條碼，原本我搞不清楚jquery.qrcode與Google Chat API的差別，後來才知道Google Chat API是將資料送到Google的伺服器上產生，而jquery.qrcode則是直接由瀏覽器來進行匯製&lt;/p&gt;</description></item></channel></rss>