Chifukwa Chani Ma Speed ​​Speed ​​Nkhani ndi Njira 5 Zowonjezera

Website ikufulumira

Kodi mudasiya ntchito yotsitsa pang'onopang'ono, ndikudina batani lakumbuyo kuti mupite kukapeza zomwe mumafuna kwina? Inde, mwatero; aliyense ali ndi nthawi ina. Kupatula apo, 25% yaife titha kusiya tsamba ngati silinalowemo masekondi anayi (ndipo zoyembekeza zikungokula pakapita nthawi).

Koma si chifukwa chokha chomwe tsambalo limafunikira. Udindo wa Google ganizirani momwe tsamba lanu limagwirira ntchito komanso kuthamanga kwake. Kuthamanga pang'ono kumatha kupweteketsa masanjidwe atsamba lanu ngakhale zitakhala zabwino kwambiri.

Mwachidule, kuthamanga kwa tsamba lanu kutsamba lanu kungakhudze bwanji mwayi wokaona alendo patsamba lanu. Akapeza tsamba lanu lawebusayiti, momwe tsamba lanu limagwirira ntchito limakhudza ngati amakhalabe ndikuyang'ana zomwe zili patsamba lanu. Tsopano tiyeni tiwone njira zomwe mungasinthire magwiridwe antchito atsamba lanu.

1. Gwiritsani ntchito Google's PageSpeed ​​Tools

Google Zida za PageSpeed ndi malo abwino kuyambira zikafika pakusintha magwiridwe antchito atsamba lanu.

Mutha kusanthula tsamba lanu ndi PageSpeed ​​kuti mulandire mphambu yonse, yomwe ndi nambala yomwe ikuwonetsa momwe Google imaganizira kuti tsamba lanu likuchita - kukweza zigoli zanu, mwachangu (komanso bwino) tsamba lanu likuchita.

Zomwe muyenera kungochita ndikunena ulalo wa tsamba lanu Tsamba lakuthamanga kwa Tsamba ndikudina "kusanthula." M'masekondi ochepa, mupeza zambiri zazomwe tsamba lanu limatenga, komanso malingaliro pazomwe mungachite kuti muziyenda mwachangu, monga kuchepetsa kukula kwamafayilo azithunzi zanu, kuchotsa nambala yosagwiritsidwa ntchito ya CSS, kapena kusanja JavaScript.

Google imaperekanso ma module a PageSpeed ​​otseguka, omwe amapezeka kwa ogwiritsa ntchito ma seva a Apache kapena Nginx. Ma module awa, akayikidwa, adzalembanso ndikukweza zomwe mumagwiritsa ntchito tsamba lanu, kuphatikiza kuphatikiza mafayilo amtundu wa CSS ndi JavaScript, kulepheretsa kutsitsa mafayilo osankhidwa, ndikukweza zithunzi zanu.

2. Gwiritsani Ntchito Zomwe Mukusunga Patsamba Lanu

Kugwiritsa ntchito mafayilo ochepa ndi mafayilo ang'onoang'ono amathandizira. Pali zinthu zingapo mutha kuchita izi:

  • Chepetsani mafayilo anu a HTML, CSS, ndi JavaScript: Minification ndi njira yochotsera chilichonse chomwe sichofunikira kuti tsamba lanu lizigwiritsa ntchito mafayilo anu, monga malo oyera (kuphatikiza mizere) ndi ndemanga zamakalata. Zinthu izi zimapangitsa mafayilo kukhala osavuta kuwerengera opanga mapulogalamu, koma ingochedwetsani makina.
  • Konzani zithunzi zanu: Choyamba, onetsetsani kuti mukugwiritsa ntchito mtundu wabwino kwambiri wazithunzi zanu (mwachitsanzo, ma JPG azithunzi, ma PNG pakupanga). Sakanizani zithunzi zanu, pogwiritsa ntchito njira zopanda pake zomwe zimachepetsa kukula kwamafayilo anu ndikukhala okhulupirika (makamaka kwa diso la munthu). Onetsetsani kuti kukula kwazithunzi zanu kuli koyenera - musinthe zithunzizo kuti zisakhale zazikulu.
  • Kuchedwa kupereka: Kakhodi kakang'ono kangathe kuwonjezeredwa patsamba lanu kuti muchepetse kupereka zinthu zomwe sizikufunika pakatundu woyamba. Mwachitsanzo, zomwe zili "pamwambapa" ziyenera kuyikidwa patsogolo kuposa zomwe zili pamapazi. Kuphatikiza apo, onetsetsani kuti chilichonse chomwe chikuletsa (monga mafayilo a JavaScript) chachedwa.

3. Cache, Cache, Cache Webusayiti Yanu

Caching ndichofunikira kwambiri kuti lifulumizitse kuthamanga kwama tsamba anu. Pali zinthu ziwiri zoyenera kuchita posungira.

Choyamba, pezani ndikugwiritsa ntchito CDN kapena netiweki yoperekera. Ma CDN ndi ma seva omwe amasunga masamba anu patsamba lanu. Kenako, wina akafunsa tsamba lanu, amaperekedwa kwa iwo pogwiritsa ntchito seva yomwe ili pafupi kwambiri ndi iwo. Izi zimachepetsa mtunda womwe mapaketi amayenera kuyenda asanafike kwa wogwiritsa ntchito.

Chachiwiri, set kusungira pamutu wa HTTP zomwe zimatsagana ndi mafayilo kuchokera pa intaneti yanu kuti asakatuli a ogwiritsa ntchito azisunga zina (ngati sizonse) patsamba lanu. Ngakhale izi sizothandiza kwambiri pakubwera koyamba kwa ogwiritsa ntchito, zitha kukhala zabwino pochezera pambuyo pake ngati sayenera kudikirira kuti tsamba lanu lisungidwe

4. Onetsetsani Kuti Webusayiti Yanu Ndi Yosavuta Kutsatira

Ogwiritsa ntchito mafoni amakhala pamakina ocheperako kuposa omwe amagwiritsidwa ntchito ndi ma PC ndi ma laputopu. Chifukwa chake ndikofunikira kuti tsamba lanu lizitha kunyamula mwachangu m'malo osafunikira kwenikweni. Masamba am'manja amayenera kupangidwira kuti azifuna zochepera zochepa kuposa anzawo azowonekera.

5. Sankhani Wopereka Webusayiti Wabwino

Mutha kuchita zonse bwino pokhathamiritsa tsamba lanu, koma ngati wopezera masamba awebusayiti amakhala ngati chotchinga, mutha kuwona nthawi yochepetsera tsamba lanu.

Onetsetsani kuti mwasankha dongosolo lomwe lingakwaniritse zosowa zanu. Zosankha zokhala ndi bajeti, zotsika mtengo zitha kuwoneka zosangalatsa, koma zitha kubwera ndi zoperewera zomwe zingachedwetse tsamba lanu (makamaka mukawona kuchuluka kwamagalimoto ambiri kapena masamba anu ali olemera).

Komanso, onetsetsani kuti amene akukuchezeraniyo ndiwothandiza kwambiri pazachangu. Osati makampani onse amapangidwa ofanana, ndipo makampani ena amapatsa makasitomala awo ma seva mwachangu, ngakhale atakhala kuti zonse ndizofanana. Kungakhale kovuta kudziwa omwe ali makamu omwe ali, koma ndemanga za makasitoma itha kukhala yothandiza panthawi yogula.

Kukulunga

Kuthamanga kwa tsamba lanu ndikofunika, kupeza ndi kusunga alendo, chifukwa chake mufunika kuwonetsetsa kuti masamba anu azinyamula mwachangu momwe angathere. Mwamwayi, kukonza magwiridwe antchito awebusayiti yanu si kovuta kwambiri, ndipo m'nkhaniyi, tapanga zopambana mwachangu zomwe zingathandize tsamba lanu.

Mukuganiza chiyani?

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