ฉันมีวิดเจ็ตที่ดึงเนื้อหาจากฐานข้อมูลระยะไกล บ่อยครั้งโหลดช้ากว่าหน้าเว็บ ในตอนแรก ขณะที่มันกำลังโหลด มันจะมีโปรไฟล์ที่เล็กกว่าที่มันจะจบลงในที่สุด มันทำให้เกิดปัญหาด้วยเหตุผลหลายประการที่เกี่ยวข้องกับการแสดงเพจ
วิดเจ็ตจะโหลดปกอัลบั้มบางส่วน มีวิธีการโหลด jpeg ตัวยึดตำแหน่งหรือไม่เพื่อให้วิดเจ็ตมองเห็นได้ต่อเนื่อง แต่ยังโหลดหน้าเว็บโดยไม่มีการเปลี่ยนแปลงขนาดและเค้าโครงเมื่อเนื้อหาจริงมาถึง
ฉันไม่แน่ใจ 100% เกี่ยวกับสิ่งที่ฉันสามารถโพสต์ที่นี่เป็นตัวอย่างหรือความพยายาม แต่ฉันสามารถเจาะลึกปลั๊กอิน Wordpress ปัจจุบันได้หากจำเป็น
ตัวอย่าง ที่นี่ - เลื่อนขึ้นและลงในขณะที่เพจกำลังโหลด และดูการโหลดปกอัลบั้มในแถบด้านข้างซ้าย .
ความพยายามของฉัน...
/* IMAGE PLACEHOLDER */
#samsonginfo_widget_li_djart::-webkit-input-placeholder {
color: transparent;
text-indent: -9999px;
background-image: url("http://placehold.it/150x150");
background-position: 0 50%;
background-repeat: no-repeat;
}
#samsonginfo_widget_li_djart::-moz-placeholder {
/* Firefox 19+ */
color: transparent;
text-indent: -9999px;
background-image: url("http://placehold.it/150x150");
background-position: 0 50%;
background-repeat: no-repeat;
}
#samsonginfo_widget_li_djart:-moz-placeholder {
/* Firefox 18- */
color: transparent;
text-indent: -9999px;
background-image: url("http://placehold.it/150x150");
background-position: 0 50%;
background-repeat: no-repeat;
}
#samsonginfo_widget_li_djart:-ms-input-placeholder {
/* IE 10- */
color: transparent;
text-indent: -9999px;
background-image: url("http://placehold.it/150x150");
background-position: 0 50%;
background-repeat: no-repeat;