How I increased by blog’s load speed by 50% using YSlow كيف لي ان زيادة سرعة تحميل بلوق 'sبنسبة 50 ٪ باستخدام yslow

Posted on August 10, 2007 at 12:57 pm موقع اغسطس 10 ، 2007 في الساعة 12:57

Make sure to read other posts from the FireFox YSlow series! تأكد لقراءة وظائف اخرى من فايرفوكس yslow سلسلة!

  1. Use YSlow Firefox add-on to analyze the performance of your web site استخدام yslow فايرفوكس اضافي لتحليل اداء موقع الويب الخاص بك
  2. How I increased by blog’s load speed by 50% using YSlow كيف لي ان زيادة سرعة تحميل بلوق 'sبنسبة 50 ٪ باستخدام yslow

YSlow Yslow is a great site performance tuning tool that every blogger and site owner should use! هو عظيم الموقع اداة ضبط الاداء ان كل Blogger وصاحب الموقع ان يستخدم! Using YSlow, I was able to have my WordPress blog load almost twice as fast as before by changing a few simple things. باستخدام yslow ، كان بوسعي ان تتاح لي بلوق WordPress الحمل مرتين تقريبا بنفس السرعه التي يتغير بها قبل بضعة أشياء بسيطة. WordPress may not have the most optimized code in the world, but most blogs are running slow because of their own lack of understanding of what it takes to make a web site load quickly. WordPress قد لا تمتلك معظم الامثل المدونه في العالم ، ولكن معظم بلوق يديرون بطيءه الخاصة بهم بسبب عدم فهم ما يحيط الادلاء موقع على شبكة الانترنت حمل بسرعة.

The Simple Stuff الاشياء البسيطة

Interestingly enough, I was able to see a 25% improvement in load time by doing the following things: للاهتمام بما فيه الكفايه ، وكان بامكاني ان انظر الى تحسن بنسبة 25 ٪ في الوقت تحميل بالممارسه شيء من الاشياء التالية :

1. Removing SideBar Items - Removing blog directory links from my sidebar and cleaning it up so that it only contains a RSS subscribe, Pages, Categories, Archives, and two third-party links, one to Technorati and one for Spotplex. 1. بازاله الشريط الجانبي بنود -- ازالة بلوق دليل روابط من بلادي الشريط الجانبي والتنظيف انه حتى أنه يحتوي فقط [رس] الاشتراك ، الصفحات ، والفئات ، والمحفوظات ، واثنين من طرف ثالث وصلات ، واحد الى واحد لTechnorati spotplex. Earlier I had BlogTopList, BlogTopArea, and a few other blog ranking chicklets on my sidebar that were causing almost 10 DNS lookups each time the front page loaded. فى وقت سابق كنت قد blogtoplist ، blogtoparea ، وهناك عدد قليل آخر من بلوق ترتيب chicklets على بلدي الجانبية التي تتسبب في حوالي 10 دياناس المشاهده في كل مرة الصفحات تحميلها.

I also removed all JavaScript trackers like MyBlogLog, except for Google Analytics. انا ايضا ازالة جميع المقتفون مثل جافا سكريبت mybloglog ، باستثناء صور التحليل المنطقي. There’s really no need to be tracking using 5 different tracking sites, it only causes more DNS lookups. هناك حقا لا تحتاج الى تتبع باستخدام 5 تتبع مواقع مختلفة ، الا انها اكثر الاسباب دياناس المشاهده. When you run YSlow, check #9 to see how many DNS lookups you currently have. عندما قمت بتشغيل yslow ، تأكد # 9 لترى كم دياناس المشاهده لديك حاليا.

2. Delete Useless Plugins - Deactivated useless plugins that were only adding more code to my page or not very helpful in terms of getting traffic or helping a reader while on a page. 2. عديمة الفاءده حذف ملحقات -- ملحقات المعطله لا طائل منه سوى ان تضيف مزيدا من المدونه الى صفحتي او ليس مفيدا جدا من حيث حركة المرور او الحصول على مساعدة القارئ على حين صفحة. For example, I was using FeedBurner’s FeedSmith code to add an Email This, Digg This, etc to my posts, but I already have ShareThis installed and a few other social bookmarking links at the top of my page. فعلى سبيل المثال ، كنت تستخدم feedburner 'sfeedsmith قانون يضاف الى هذا البريد الالكتروني ، سلاشدوت هذا ، وما الى بلدي وظائف ، ولكنني بالفعل sharethis تركيب وعدد قليل من الروابط الاجتماعية الاخرى اشارة مرجعيه في اعلى صفحتي.

Also, I had more than one tagging plugin installed, which was not helping in any way, so reduced it down to simply Technorati tags. ايضا ، كان لي أكثر من تعليم تركيب البرنامج المساعد ، الذي لا يساعد بأي شكل من الاشكال ، حتى انها خفضت الى اسفل ببساطة Technorati العلامات. Another thing that I did which seemed to help was to actually DELETE the deactivated plugins from the wp-contents\plugin directory. شيء آخر ان فعلت الذي يبدو انه كان يساعد فعلا على حذف المعطله ملحقات من رزمه العمل - المحتويات \ دليل البرنامج المساعد. I’m not sure why, but this helped a somewhat also! لست متأكدا لماذا ، ولكن هذا ساعد الى حد ما ايضا!

More Interesting Stuff مادة أكثر إثارة للاهتمام

The above-mentioned steps are easy and a very quick way to lower the load time for your web pages, but there are a couple of more things that I was able to do that helped even more! المذكورة اعلاه هي خطوات سهلة وسريعه جدا في طريقه الى خفض الوقت لتحميل صفحات موقعك ، ولكن هناك القليل من اكثر الاشياء التي كنت قادرا على فعل ذلك ساعد اكثر!

#6 on YSlow says that you should move scripts down to the bottom of a page rather than at the top because it holds up the rendering of the web page if they are in the HEAD section. # 6 علي yslow يقول ان عليك ان تتحرك مخطوطات نزولا الى اسفل الصفحه وليس في اعلى لانه يحتجز تقديم صفحة الويب اذا كانت في رأس الفرع. I had no clue about this and had about 6 scripts that were in the head section. لم تكن لدي اي فكرة عن هذا وكان حوالي 6 الكتابات التي كانت في رأس الفرع. Moving the scripts down was not as simple as the other steps because you have to edit some of your plugins to have them write the “<script type=”text/javascript” src=…” in the footer section. نقل مخطوطات لأسفل ليست بالبساطه الخطوات الأخرى لأن لديك لتحرير بعض ملحقات الخاص بك ليكون لهم الكتابة "<سكريبت النوع =" نص / جافا سكريبت "src =…" في ذيل الصفحه الباب.

As a note, though, you will not have able to move ALL of your scripts down to the bottom because some will simply not work! بوصفه علما ، وان كان كذلك ، فلن يكون قادرا على التحرك من جميع الكتابات الخاصة بك نزولا الى القاع لأن بعض سوف ببساطة لا يعملون! Google Analytics, for example, will have to remain and I left my Subscribe Me in the HEAD also otherwise when you scroll over my Subscribe button instead of a list coming down, nothing would happen. صور التحليل المنطقي ، على سبيل المثال ، سيتعين على البقاء وأنني تركت بلدي لي ان اشترك في رأسه على خلاف ذلك ايضا عندما التمرير اكثر من بلادي الاشتراك زر بدلا من قائمة المقبلة إلى أسفل ، لا شيء سيحدث.

However, I was able to move my ShareThis, Subscribe Remind , and AJAX Edit Comments scripts to the bottom without any problems. ومع ذلك ، كنت قادرا على التحرك بلادي sharethis ، اشترك اذكر ، واجاكس تحرير التعليقات مخطوطات الى القاع دون اي مشاكل. Here’s how you can try moving your scripts to the footer: إليك كيف يمكنك ان تحاول الانتقال الى الكتابات الخاصة بك الهامش :

1. Firstly, backup the original code or file for the plugin! اولا ، الاحتياطيه الاصليه المدونه أو الملف للالبرنامج المساعد! If you mess it up, you’ll need to go back to the original! اذا كنت فوضى انها تصل ، فعليك العودة الى الاصل!

2. Go to your Admin panel and click on Plugins. اذهب الى صفحتك في ادارة الفريق وانقر على ملحقات. Find the plugin that YSlow is listing as an offender. نجد ان البرنامج المساعد yslow قائمة كما هو الجاني. Here is an example of mine currently: هنا مثال على الالغام حاليا :

3. Click on Edit to modify the plugin code. انقر على تحرير لتعديل قانون البرنامج المساعد. Now do a search in your browser for the phrase “ wp_head “. نفعل الآن البحث في المتصفح لعبارة "wp_head". wp_head is a hook that plugins can use to dump stuff into the HEAD section. Wp_head هو ان هوك ملحقات يمكن استخدامها لاغراق مادة الى رئيس القسم. Change wp_head to ‘wp_footer’ with the single quotes. تغيير wp_head الى 'wp_footer' مع وحيد بين مزدوجين. Now your script code will be moved to the bottom. سكريبت المدونه الخاصة بك الآن سوف تنقل الى القاع. Sometimes you’ll see more than one wp_head in your plugin file, one for CSS and one for JS. Only change the JS line ! احيانا سترى اكثر من wp_head الخاصة بك في ملف البرنامج المساعد ، واحدة لCSS واحد لJS. JS فقط تغيير الخط!

4. Save your file and test out what changes were made on the site. احفظ الملف واختبار ما ادخلت تغييرات على الموقع. A few minor things changed on mine with the AJAX Edit Comments, but it was nothing major, just a smaller text box. قليلة تغيرت الامور البسيطة المتعلقة بعمليات ازالة الالغام مع اجاكس تحرير التعليقات ، لكنه كان شيئا كبيرا ، عادل اصغر مربع النص.

Shrink, Zip and Cache تنكمش ، والرمز البريدي ومخبأ

Ok, so there are two more things that I did to get me to the 50% reduction in load time: got gzip to work with wp-cache and used JSMin to shrink the prototype.js file. حسنا ، ذلك ان هناك اثنين من أكثر الاشياء التي فعلت لأحصل لي الى 50 ٪ للحد من الحمل في الوقت : حصلت gzip العمل مع رزمه العمل - مخبأ وتستخدم jsmin الى تقليص prototype.js الملف.

Getting gzip to work with WP-cache plugin takes a little more editing of your files, so again please make sure to backup everything in case it doesn’t work. Gzip للوصول الى العمل مع البرنامج المساعد رزمه العمل - مخبأ تأخذ قليلا اكثر من تحرير ملفاتك ، وذلك مرة أخرى يرجى التأكد من ان كل شيء احتياطية في حال لم يفلح ذلك. Anyway, here’s the method I followed to على كل حال ، اليك طريقة تابعت علي update my wp-cache files تحديث بلادي رزمه العمل - مخبأ ملفات . Remember, you should still keep gzip disabled in WordPress. تذكر انك لا يزال ينبغي ابقاء gzip المعوقين في WordPress. Editing the wp-cache code makes the PLUGIN compress the JavaScript files, not WordPress. تحرير رزمه العمل - مخبأ قانون يجعل البرنامج المساعد ضغط الملفات جافا سكريبت ، لا WordPress. So keep gzip disabled in WordPress in order for it to work. حتى تبقى gzip المعوقين في WordPress كيما يتسنى لها العمل.

Lastly, point number 10 in YSlow is to have your JavaScript files Minified. واخيرا ، في 10 نقطة عدد yslow هو جافا سكريبت لديك ملفات مصغر. This will basically remove all comments and extra line breaks, etc from the code making it much smaller, but impossible to read. هذا سيكون اساسا ازالة جميع التعليقات والخارجة عن الخط الراحة ، إلخ من قانون مما يجعله اصغر بكثير ، ولكن من المستحيل أن يقرأ. To use لإستخدام JSMin Jsmin , download it and copy it to the root of your C drive. ، وأنه تنزيل أنسخها الى جذر محرك الأقراص الخاص بك ج.

Copy down the JavaScript file you want to shrink and place it in the same directory as the JSMin executable. انسخ جافا سكريبت الملف الذي تريد ان يتقلص وضعها في نفس الدليل كما jsmin قابل للتنفيذ. Go into DOS and CD into the directory with the files. أخوض دوس ومؤتمر نزع السلاح الى الدليل مع الملفات. Type jsmin <originalfilename.js >newfilename.js to convert the file. نوع jsmin <originalfilename.js> newfilename.js لتحويل الملف.

Once the file is generated, copy it somewhere else, rename it to the original file name and replace it on your server. الملف مرة واحدة ولدت ، أنسخها في مكان آخر ، قم باعادة تسميته الى اسم الملف الاصلي والاستعاضه عنه على الخادم الخاص بك. I was able to reduce my prototype.js file from 74KB to 54Kb using JSMin. كان بوسعي للحد من بلدي prototype.js الملف من 74kb الى 54kb باستخدام jsmin. Unfortunately, I’m still not sure how to move prototype.js to the bottom or if it’s even possible, but if you know, post a comment. وللاسف ، ما زلت غير متأكد من كيفية التحرك prototype.js الى اسفل او حتى لو كان ممكنا ، ولكن اذا كنت تعرف ، ارسال تعليق.

Conclusion خاتمة

Even though my site has only a 62 when I run YSlow on it now, it’s far better than the 40 I was getting before I used it! على الرغم من موقعي سوى 62 عندما انشءها yslow عليه الان ، انها افضل بكثير من الحصول على 40 كنت استخدمه قبل ان أبدا! If your WordPress blog or web site is running slow, get to working understanding the various issues involved in increasing site performance. اذا كان جهازك WordPress بلوق او موقع يركض وبطيءه ، وأحصل على فهم يعملون لمختلف المسائل ذات الصلة في زيادة اداء الموقع. Doing a few of these things might save you cash if you think you need a new host or dedicated hosting. العمل قليلة من هذه الاشياء قد يخلصك النقدية اذا كنت تعتقد انك تحتاج الى استضافة جديدة او مخصصة استضافة.

Now it’s time for me to figure out the expires header and etags, since I got F’s on both of those! الآن حان الوقت بالنسبة لي ان الرقم بها تنتهي راسيه وetags ، منذ صعودي للو على كل من هذين!

Technorati Tags: Technorati البطاقات : , ، , ، , ، , ، , ، , ،

If you enjoyed this post, make sure you اذا كنت تتمتع هذه الوظيفة ، تأكد من انك subscribe to my RSS feed اشترك في بلدي [رس] تغذية ! !

» Filed Under »المقدمة تحت Web Site Tips الموقع على الانترنت النصائح

Related Posts الوظائف ذات الصلة

2 Responses to “How I increased by blog’s load speed by 50% using YSlow” 2 ردود على "كيف لي ان زيادة سرعة تحميل بلوق's بنسبة 50 ٪ باستخدام yslow "

      Pingbacks
    1. Wordpress Performance verbessern - Tipps und Tricks WordPress الاداء verbessern -- tipps und خدع Says: يقول :

      […] Online-Tech-Tips […] […] الانترنت - تقنيه - نصائح […]

    2. Pingbacks
    3. 7 free SEO tools to analyze and optimize your website for speed and compatibility 7 الحر سيو ادوات لتحليل وتحسين موقعك لسرعة والتوافق Says: يقول :

      […] to ensure the highest possible grade. […] لضمان أعلى درجة ممكنة. I wrote two articles on YSlow, one about how it helped me reduce the load time of my site by 50% and another on how to setup YSlow. لقد كتبت مقالات عن yslow اثنين ، واحد حول الكيفيه التي ساعدتني تقليل الحمل الوقت من موقعي بنسبة 50 ٪ وآخر على كيفية إعداد yslow. Make sure to read them and install Firefox just for this […] تأكد لقراءتها وتثبيت فايرفوكس عادل لهذا […]

    Please post your comments/suggestions! الرجاء ظيفة تعليقاتكم / اقتراحات!