Momwe Timadulira Nthawi Yathu Yotumizira Tsamba Pakadutsa 10 Masekondi

Kuthamanga ndi mayanjano sizikuwoneka ngati zikugwira ntchito limodzi zikafika patsamba lalikulu. Tinasamutsa tsamba lathu kupita ku Flywheel (yolumikizana) ndipo yasintha kwambiri magwiridwe antchito ndi kukhazikika kwa tsamba lathu. Koma kapangidwe katsamba kathu - kokhala ndi phazi lamafuta lomwe limalimbikitsa zochitika zathu pa Facebook, Twitter, Youtube komanso pa Podcast yathu - tachedwetsa tsamba lathu mpaka kukwawa.

Zinali zoyipa. Pomwe tsamba lalikulu limadzaza m'masekondi awiri kapena ochepera, tsamba lathu limatenga masekondi 2 kuti tsambalo amalize. Vuto silinali WordPress kapena Flywheel, vuto linali zinthu zonse zomwe timatsatsa kuchokera kuzinthu zina… Ma foda a Facebook ndi Twitter, zithunzi zowonetseratu za Youtube, pulogalamu yathu ya Podcast, sindinathe kuwongolera momwe amachedwetsera. Mpaka pano.

Mudzawona tsopano kuti masamba athu amanyamula pafupifupi masekondi awiri. Tinachita bwanji izi? Tidawonjezera gawo lamphamvu kumapazi athu lomwe limangonyamula pokhapokha wogwiritsa ntchito atadutsa mpaka pamenepo. Pitani mpaka pansi pa tsamba lathu mu msakatuli (osati mafoni, pulogalamu kapena piritsi) ndipo muwona chithunzi chotsitsa chikuyambiranso:

katundu

Pogwiritsa ntchito jQuery, sitimatsitsa tsambalo mpaka wina atapita pamenepo. Code ndiyosavuta:

$ (window) .scroll (function () {if (jQuery (document). kutalika () == jQuery (window) .scrollTop () + jQuery (window). kutalika ()) {if ($ ("# placetoload" zolembera (). kutalika <200) {$ ("# zowonjezera"). katundu ('[njira yathunthu yatsamba yoti mutsegule]');}}});

Wogwiritsa ntchito akangolowa m'munsi mwa tsambalo, jQuery imatulutsa zomwe zili patsamba lomwe lafotokozedwazo ndikuzinyamula mu div yomwe mwasankha.

Pomwe tsambalo silikupindulanso ndi zomwe zadzaza pamenepo (chifukwa makina osakira sakuyenda), tili ndi chidaliro kuti liwiro la tsambali litithandiza masanjidwe athu, kugawana ndi kuchita zambiri kuposa kukhala ndi winawake moleza mtima yembekezerani tsamba lathu kuti lizitsika pang'onopang'ono mopepuka. Koposa zonse, tsambali lidakali ndi zinthu zonse zomwe tikufuna kuchita ndi alendo athu ... osaperekanso liwiro patsamba.

Tidakali ndi ntchito yoti tichite… koma tikufika kumeneko!

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.