Isu Tinocheka Sei Yedu Peji Rekutakura Nguva ne10 Seconds

Kumhanya uye zvemagariro hazviite senge zvinoshanda pamwechete kana zvasvika kune webhusaiti huru. Isu takatamisa saiti yedu kuenda ku Flywheel (affiliate link) uye yakavandudza zvakanyanya mashandiro uye kugadzikana kwenzvimbo yedu. Asi yedu saiti dhizaini - ine tsoka tsoka yakasimudzira chiitiko chedu chehukama paFacebook, Twitter, Youtube uye pane yedu Podcast - yakadzora saiti yedu pasi kukambaira.

Zvaive zvakaipa. Nepo yakakura peji inotakura mumasekondi maviri kana mashoma, yedu saiti yanga ichitora anopfuura gumi masekondi kuti peji ripedze. Dambudziko raisave WordPress kana Flywheel, dambudziko raive zvinhu zvese zvekudyidzana zvatakatakura kubva kune mamwe masevhisi… Facebook neTwitter zvimisikidzo, Youtube mifananidzo yekutarisa, yedu Podcast application, ini ndaisakwanisa kudzora kuti vanononoka sei. Kusvika ikozvino.

Iwe unozoona izvozvi kuti mapeji edu anotakura mumasekondi maviri. Takazviita sei? Isu takawedzera chikamu chine simba kune yedu tsoka inongoremerwa chete kana mushandisi achipuruzira kusvika ipapo. Bhurawuza nzira yese kusvika pasi peji redu mubrowser (kwete nhare, app kana piritsi) uye iwe uchaona yekutakura mufananidzo inotora nzvimbo:

load

Tichishandisa jQuery, isu hatisi kunyatsoisa pasi peiyo peji kusvikira mumwe munhu apuruzira ipapo. Iyo kodhi iri chaizvo yakapusa.

$ (window) .scroll (function () {if (jQuery (document) .height () == jQuery (window) .scrollTop () + jQuery (window) .height ()) {if ($ ("# placetoload" ) .text (). urefu <200) {$ ("# supplementary"). mutoro ('[nzira izere peji kurodha]');}}});

Kamwe kana mushandisi akangopuruzira pasi pezasi reiyo peji, jQuery enda unoburitsa zviri mukati meiyi nzira yakatsanangurwa uye ndokutakura mukati meiyo div yawakasarudza.

Nepo saiti yacho isisabatsire kubva pane izvo zvakatakurwa ipapo (nekuti injini yekutsvaga haisi kuitsveta), tine chivimbo chekuti kumhanya kweiyo peji kuchabatsira chinzvimbo chedu, kugovana nekubatana zvakanyanya kupfuura kuve nemumwe munhu. nokusashivirira mirira peji redu kurodha zvinonzwisisika zvishoma. Zvakanakisisa pane zvese, iro peji rinenge riine zvese zvinhu zvatinoda kusangana nevashanyi vedu… tisingazvipire kumhanya peji.

Tichine basa rekuita… asi isu tiri kusvika ipapo!

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.