Yadda Muke Yanke Shafin Mu Na Lokaci da Seconds 10

Sauri da zamantakewa kawai kamar basa aiki tare idan yazo da babban gidan yanar gizo. Mun yi ƙaura shafinmu zuwa Flywheel (haɗin haɗin gwiwa) kuma ya inganta ƙwarewa da kwanciyar hankali na rukunin yanar gizon mu. Amma ƙirar gidan yanar gizon mu - tare da ƙafa mai ƙima wanda ya inganta ayyukan mu na Facebook, Twitter, Youtube da Podcast - ya rage shafin mu zuwa rarrafe.

Ba shi da kyau. Duk da yake babban shafi yana loda cikin dakika 2 ko ƙasa da hakan, rukunin yanar gizonmu yana ɗaukar sama da daƙiƙa 10 don shafi don kammalawa. Matsalar ba ta kasance WordPress ko Flywheel ba, matsalar ita ce duk abubuwan haɗin da muka ɗora daga wasu sabis… Facebook da Twitter widgets, Hotunan samfoti na Youtube, aikace-aikacenmu na Podcast, kawai ban iya sarrafa yadda jinkirin da suke ɗorawa ba. Har yanzu.

Za ku lura yanzu cewa shafukanmu suna ɗorawa a cikin kusan dakika 2. Ta yaya muka yi shi? Mun kara wani sashi mai motsi a sawunmu wanda yake yin lodi ne kawai lokacin da mai amfani ya birgeshi har zuwa wancan wurin. Gungura gabaɗaya zuwa ƙasan shafinmu a cikin mai bincike (ba ta hannu ba, aikace-aikace ko ƙaramar kwamfutar hannu) kuma za ku ga hoton ɗora hoto ya ɗauka:

Load

Amfani da jQuery, ba za mu ɗora tushen shafin ba har sai wani ya gungura zuwa can. Lambar tana da sauki sosai:

$) ) .text (). tsayi <200) {$ ("# karin"). loda ('[cikakken hanyar shafin da za a ɗora]');}}});

Da zarar mai amfani ya gungura zuwa asalin shafin, jQuery ya ciro abubuwan da ke cikin shafi na hanyar da aka ƙayyade kuma ya ɗora su a cikin bayanin da kuka zaɓa.

Duk da cewa rukunin yanar gizon baya cin gajiyar abubuwan da aka ɗora a can (saboda injin bincike baya rarrashin sa), muna da tabbacin cewa saurin shafin zai taimaka wa martabar mu, raba mu da haɗin kai fiye da samun wani cikin haƙuri jira shafinmu ya loda jinkirin jinkiri. Mafi kyawun duka, shafin har yanzu yana da abubuwanda muke so muyi hulɗa dasu tare da baƙi… ba tare da sadaukar da saurin shafi ba.

Har yanzu muna da wasu ayyuka da za mu yi… amma muna isa can!

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.