DIY وسائل الإعلام الرئيسية الشعار

الموقع النهائي لتصميم وإنشاء مسرح منزلي الخاص ومرحبا فاي الإعداد الخاصة.

0شعار وورددليل وورد

جزء 3: Growing & Making Money

3.1 Performance

الحفاظ على موقع الويب الخاص بك بسرعة - كل من البشر ومحركات البحث لا يحبون الانتظار

3.1.1 Minimise plugins

Through­out this art­icle we’ve recom­men­ded lots of plu­gins. They’re all valu­able and can add to your site. How­ever, don’t go over the top. Each and every plu­gin that changes your site appear­ance adds pro­cessing and trans­fer over­heads. Plu­gins that are for man­age­ment use only (e.g. النسخ الاحتياطي PLU-محالج) are of much less issue. Wherever pos­sible, استخدام سمة والذي يتضمن وظيفة, أو imple منة احللول دون PLU-محالج, مثلا, instead of using the “extern­al links” plu­gin to apply style your extern­al links, ببساطة تنفيذ هذا التصميم بنفسك مع قليل من CSS and an image or 2. Try to keep a sens­ible bal­ance — don’t remove valu­able plu­gins just to keep the num­ber of plu­gins low, ولكن لا تبقي تلك التي لا تحتاج حقا إما.

3.1.2 إزالة الإضافات غير المستخدمة

This is simple — if you’re not using a plu­gin then don’t waste host­ing space on them. Unless you think you might want to react­iv­ate a plu­gin in the future don’t just deac­tiv­ate, but delete. Remov­ing unneeded plu­gins also keeps your word­press man­age­ment page less cluttered.

3.1.3 استبدال الإضافات

بعض الإضافات هي كبيرة جدا ولها الكثير من الميزات, but you might only use one fea­ture of such a huge plu­gin. Con­sider manu­ally adding the code for that fea­ture and ditch­ing the over­head of the whole plu­gin (انظر ثانية، نشوئها 3.1.1) or con­sider find­ing an altern­at­ive plu­gin which offers just the fea­tures that you need.

3.1.4 مخبأ & قلل

ويستند كلمة اضغط على بي أتش بي و MySQL, and both of these require sig­ni­fic­ant pro­cessing whenev­er a page is accessed. Since neither users nor search engines like wait­ing for pages to load you should reduce load times by util­ising vari­ous cach­ing and effi­ciency plu­gins. Cach­ing gen­er­ates stat­ic HTML ملفات لكل صفحة من صفحاتك, redu­cing the delay caused by your web serv­er pro­cessing بي أتش بي and access­ing the data­base. Mini­fy­ing removes redund­ancy from your CSS and JavaS­cript. The 2 جي تؤدي احللول هي W3 إجمالي الكاش, التي لا كلا التخزين المؤقت والتصغير أو مزيج من WP السوبر ذاكرة التخزين المؤقت و WP Mini­fy.
[google_adsense]

3.1.5 ضغط

Your host­ing will almost cer­tainly be run­ning on either the Microsoft of the Apache web serv­er. Our host uses Apache, الذي يدعم ضغط من أي بيانات يرسلها, if you choose to enable it. The Microsoft web serv­er also sup­ports com­pres­sion which can simply be turned on or off. All mod­ern web browsers sup­port com­pres­sion. There are 2 سبل البيانات كوم-بريه سيون مع اباتشي, and you may only want to com­press cer­tain files. Here at DIYMH we com­press all our text based files using apache’s mod_deflate. This reduces our front page load size from approx 100k to approx 20kDepend­ing on your web host you may only be able to enable some types of com­pres­sion. Better­Ex­plained have an دليل التفوق قدمت إلى كوم-بريه سيون which we recom­mend you read.

3.1.5 Keep scripts in files

All non con­tent really should be in extern­al files, لم يتم تحميل مضمنة. This speeds up browser ren­der­ing sig­ni­fic­antly and also makes debug­ging any page errors easi­er. JavaS­cript should be in js files, وينبغي أن يكون الاسلوب جي في CSS files etc. Even some meta con­tent can go in extern­al files (انظر على سبيل المثال ثانية، ستعقد 1.4.3 و 1.4.17).  Word­Press is very good at keep­ing to this, but if you make modi­fic­a­tions try to stick to the sys­tem. Some word­press plu­gins are bet­ter than oth­ers at this, لذلك إذا وبعضها لم يصل إلى نقطة الصفر, يخدع سدر جي إيجاد بديل.

3.1.6 استعمال CSS العفاريت

CSS العفاريت هي وسيلة ممتازة لخفض عدد HTTP requests sent back and forth between the read­ers browser and your web serv­er. Instead of hav­ing 30 indi­vidu­al images, والتي يجب أن تكون جميع طلبكم-تيد سبتمبر AR-ately, you can reduce the num­ber of requests to the serv­er by hav­ing all of images in a single file. Use CSS to insert the cor­rect part of the image each time you want to use it. Anoth­er bene­fit is that 1 large image file is often smal­ler than sev­er­al small images com­bined. There is more inform­a­tion at CSSTricks, W3Schools و جي سحق ما-الغاز المعهد الوطني للإحصاء

3.1.7 Compress images

By default lots of images can be losslessly com­pressed bet­ter than word­press does by default. This will save on image trans­fer times. There are plu­gins that will do this for you, e.g. WP Smush.itIf you’re using PNGs (دائرة التنمية الاقتصادية، الذي أوصت الرجال كما هو الحال في نشوئها ثانية 2.1.2) then there are sev­er­al ways to improve effi­ciency. To max­im­ise PNG يمكن ضغط الصور بكفاءة مع PNGGauntlet, كيف من أي وقت مضى يجب أن يتم ذلك بعد upload. If the image does­n’t con­tain many shades or col­ours then save it as a 256-col­our image — this will reduce the file-size sig­ni­fic­antly, ولكن مرة أخرى, this effi­ciency should be sought after upload. The reas­on for not com­press­ing or redu­cing the col­our depth of images before upload is that the بي أتش بي res­ize func­tion will not cre­ate good qual­ity res­ized images if they are already com­pressed. So, تحميل الصور الخاصة بك, دعونا ورد ولدت الصور حجمها, أسفل تحميلها مع FTP الموالية للغرام, كوم-الضغط عليها مع PNG-كئيبة، دعونا, and then reup­load and over-write the ori­gin­als. WP Smush.it سوف تحصل 90% من الطريق وأكثر من ذلك بكثير هو يخدع، شفني، والأنف والحنجرة. ونحن دائما إعادة ضغط PNGs لدينا محليا مع PNGGauntlet, but you may not want the hassle — the choice is yours.

3.1.8 Set expiration of static resources

Browsers cache all the con­tent that they load. To avoid images and oth­er stat­ic resources being reloaded on every page load you can spe­cify an expiry time which instructs the browser to use its cached copy until the expiry date passes, when it will fetch a fresh copy. Any­thing that does­n’t change very often should have an expiry set. At DIYMH we do this via W3 Total Cache.

3.1.9 Use relative links

إذا قمت بإدراج أي وصلات إلى أي شيء آخر على موقع الويب الخاص بك دائما استخدام مسار نسبي, بدلا من المسار الكامل. وهذا يوفر القليل من حجم الصفحة, ولكن أكثر استيراد وantly, فهذا يعني أنك لن تضطر إلى تغييرها إذا كنت من أي وقت مضى تغيير اسم النطاق الخاص بك.

3.1.10 إزالة المراجعات القديمة

By default word­press retains a copy of all pre­vi­ous revi­sions of every art­icle on your site. This is overkill in our view. The easi­est way to man­age this is to use a plu­gin, e.g. ريفي سيون بالسيطرة, which will auto­mat­ic­ally cull older revi­sions based on your set­tings. This will keep your data­base size down and the speed of your site will benefit.

3.1.11 Check your page speed

بينما سرعة الصفحة جوجل (انظر ثانية، نشوئها 1.3.2) هو مكان جيد للبدء, نحن التوصيتين اصلاح باستخدام مجموعة واسعة من الأدوات للتحقق كنت قد ISED OPTIM-موقعك بالكامل.

You might also like...

Leave a Reply