Trước khi thực hiện các tip này bạn nên save lại mẫu template của mình để có gì còn hồi phục lại được nếu chẳng may không thành công.
1/ Tối ưu CSS: nếu template của bạn có mã CSS quá dài thì nên làm điều này, còn không thì cứ để vậy cũng được. Bạn có thể vào địa chỉ này để nén code CSS lại, tốc độ sẽ được cải thiện.
2/ Tối ưu hình ảnh: các weblog về tin tức- giải trí chứa nhiều hình ảnh sẽ gây chậm blog, vì vậy hãy sử dụng định dạng JPG cho tất cả các image. Không nên copy link các hình ảnh trên website khác quá nhiều mà hãy tự upload chúng lên host riêng ví dụ như photobucket, mình thì thường up lên Picasa. Ngoài ra còn có một số software giúp nén hình ảnh mà vẫn giữ nguyên chất lượng ví dụ như Advanced JPEG Compressor.
Thử test chương trình này thì được kết quả như sau (cả hai ảnh đều ở định dạng JPG):


13Kb -> 400% -> 3Kb
Bạn có nhận ra được sự suy giảm chất lượng hình ảnh ? Tôi thì không. Software này đặc biệt hữu ích với các web có nhiều hình ảnh (truyện tranh).
3/ Tối ưu javascript: thông thường thì ta không nên chèn quá nhiều script vào template bởi gây chậm đáng kể, tuy nhiên nếu điều đó là bất khả kháng thì vẫn có một số cách để tăng tốc. Chúng ta có thể chèn thẳng code trong file .js vào trong template bằng cách dùng thẻ
Tuy nhiên cũng cần chú ý với cách này, tuy nó có tăng tốc độ load trang web nhưng lại ảnh hưởng đến SEO. Sở dĩ nói vậy là vì Google không mặn mà lắm với các trang web có phần code HTML quá dài dòng và người chịu thiệt hại sẽ là bạn. Nếu ta sử dụng các liên kết tới file .js thì sẽ giảm được khả năng này. Vì vậy mình khuyên chỉ nên chèn các đoạn script có dung lượng < 10KB, và bạn cũng có thể nén nó lại bằng cách truy cập địa chỉ này (lưu ý là không phải lúc nào cũng nén thành công). Nên chèn script vào cuối phần code của template nếu được, càng sát thẻ </body> càng tốt.
Một đoạn script không nhất thiết phải được load ở tất cả các trang trên blog. Ví dụ: trang web của bạn có một slider ở trang chủ sử dụng hiệu ứng jquery. Vậy jquery có còn cần thiết ở trang đọc bài (không có slider) không ? Tất nhiên là không, ta sẽ sử dụng câu lệnh sau để loại bỏ sự phiền hà này:
Ở trên chỉ là ví dụ, hãy áp dụng cách này cho các script khác như related posts hoặcpage-navigation chẳng hạn.
4/ Hạn chế sử dụng các tiện ích bên ngoài như Linkwithin, DISQUS, Facebook Fanpage... tuy rất tiện lợi nhưng chúng gây chậm rõ rệt, và SEO tệ hại.
5/ Hiện nay Blogger đã hỗ trợ tính năng readmore (đọc thêm), nhưng khả năng tùy biến của nó là chưa cao, và đa số chúng ta vẫn thường dùng Auto-readmore script bởi đẹp và tiện lợi. Tuy nhiên đây cũng chính là nguyên nhân gây chậm, bởi vì không như readmore của Blogspot, toàn bộ nội dung của bài đăng (tất cả hình ảnh) vẫn được load ở trang chủ, nó chỉ là bị ẩn đi thôi.
Thậm chí nếu số hình ảnh là quá lớn thì sẽ xảy ra tình trạng mất bài ở trang chủ. Mình khuyên là không nên dùng script auto, bạn có thể tham khảo thủ thuật auto-readmore không dùng javascript để khắc phục lỗi này.
Ý kiến bạn đọc [ 12 ] Thêm Ý kiến của bạn cho bài này
123.hp.com printer support
typing services rochester ny
hp officejet pro 8600 setup
123.hp.com/dj2652
123.hp.com/oj5200123.hp.com/oj3830123.hp.com/ojpro6968123.hp.com/ojpro8710
hp officejet 5252 driver , hp officejet 5252 driver
sponsor a child in india
sponsor a child in india
sponsor a child in india
sponsor a child in india
sponsor a child in india
sponsor a child in india
Being one of the most resourceful streaming devices in the world, Roku gives you a perspective that combines quality with productivity. It is available in different variants and the features they offer are distinct in comparison with the other devices. You can access thousands of platforms using the Roku streaming player and the best part of this device is its high definition sound through the means of speakers. The most vital part of all is the 4K HDR trait that makes the device to stand out among its counterparts. Roku offers even private listening by using earphones that can be linked by Bluetooth.
Channel activation
The channel activation requires a Roku account and it can be found by using the advanced search feature. By clicking on "Add the channel" option, the channel can be added to your Roku account. But you can try activating the channel by means of an activation code. Obtain the Roku activation code from the Roku TV screen display and paste the code in the space that is provided. Now the channel gets activated without much hindrance. This is why you must try using the Roku com link activation code
For more information and queries regarding the Roku com link enter code, do contact our support team.
HP Printer setup instructions
For the HP Printer setup, you need to complete all the initial setup like power up the printer, set the general settings on the printer, then configure the printer to the wired or the wireless network; you can use either the wireless wizard method or the WPS method depending upon the printer. Now finally download the driver and add the printer either to the MAC or the windows for the driver installation on the printer
For further details on the HP Printer setup try to reach our customer support team and resolve the issues
Thanks for this nice post!
123.hp.com
123.hp.com/setup
hp.com/setup
hp setup
hp deskjet 6980dt driverhp deskjet 6980dt driverhp deskjet 6980dt driverhp deskjet 6980dt driverhp deskjet 6980dt driver
How to link TCL Roku TV to the network?
TCL Roku TV setup includes the network connection process. The Roku device looks for the networks available around. And this provides you a list of networks. Choose yours from the list and key in the password correctly. Ensure not to commit any errors while giving the link code. Further, this gets the network connection for the Roku device. The Roku device will update its latest version and provide the Roku link code where you need to key in this code in the Roku com link site and sign in with the Roku account and complete the activation process start to install the channels.
If you need to know more about the TCL Roku TV setup, you can contact our technical expert squad by dialing the toll-free number +1-805-292-0100.
Ý kiến của bạn
* Lưu ý :
- Vui lòng gõ tiếng Việt có dấu khi viết bình luận.
- Nội dung phải liên quan đến chủ đề bài viết.
- Không dùng lời lẽ khích bác, thô tục ảnh hưởng đến người khác.
- Không đặt link đến Blog/Web khác.
- Những góp ý, thắc mắc không liên quan các bạn vui lòng post tại đây.
Thân, weblamgiau.