PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : پارامترهای gtmetrix



zer0ne
December 19th, 2017, 00:03
سلام
وقت همه عزیزان بخیر

یه سری پارامتر در GTmetrix هست که میخواستم بدونم بسته به چه معیارهایی هست و چطور میشه بهبودشون داد...

(فایل ضمیمه شده)37292

kiavaco
December 19th, 2017, 00:07
ببینید بستگی داره سایتتونو لینکشو بدید راهنمایی کنم توی gtmetrix ممکنه بگه مثلا کد های جاوا اسکریپتتون نیاز به defer داره

که باید توی کد هاتون بگنجونید

یا مثلا ممکنه بگه minimize کنید و ...

zer0ne
December 19th, 2017, 00:41
این قسمت ها مدنظر هست:


Time to First Byte (TTFB) is the total amount of time spent to receive the first byte of the response once it has been requested. It is the sum of "Redirect duration" + "Connection duration" + "Backend duration". This metric is one of the key indicators of web performance.
In the Waterfall Chart, it is calculated at the start of the test until just before receiving on the page request and represented by the orange line.
Some ways to improve the TTFB include: optimizing application code, implementing caching, fine-tuning your web server configuration, or upgrading server hardware.




Once any redirects have completed, Connection duration is measured. This is the time spent connecting to the server to make the request to the page.
Technically speaking, this duration is a combination of the blocked time, DNS time, connect time and sending time of the request (rather than just connect time). We've combined those components into a single Connection duration to simplify things (as most of these times are usually small).
In the Waterfall Chart, Connection duration consists of everything up to and including the "Sending" time in the final HTML page request (the first 200 OK response).
During this time, the browser screen is still blank! Various causes could contribute to this, including a slow/problematic connection between the test server and site or slow response times from the site.

firebox
December 19th, 2017, 12:14
این قسمت ها مدنظر هست:
سه قسمت داره ، هر کدوم رو توضیح میدم :

۱. Redirect : مدت زمانی که طول میکشه تا اون آدرس که وارد کردید به آدرس دیگه ای منتقل بشه (اگر اون آدرس که وارد میکنید ، دارای ریدایرکت باشه ، در غیر اونصورت مقدارش صفر هست)

۲. Connect : مدت زمانی که طول میکشه تا یک کانکشن TCP بین کلاینت و سرور ایجاد بشه ، زمان ایجاد هندشیک SSL هم جزو همین است.

۳. Backend : مدت زمانی طول میکشه تا بک اند تون درخواست رو دریافت کنه و پاسخ رو سمت کاربر ارسال کنه.

برای بهبود بخشیدن Connect ، تا میتونید تعداد کانکشن ها رو کاهش بدید ، استفاده از کش مرورگر و همینطور فعال کردن keep alive پیشنهاد میشه.

برای بهبود Backend هم باید اسکریپت سایت تون رو بهبود ببخشید ، باید بررسی کنید ، ببنید چه بخش هایی از کد نا کارآمد هست و چه کوئری هایی به دیتابس کند هستن ، همینطور استفاده از Page Cache کش کردن صفحاتی که به تعداد بالا درخواست داده میشن ، به جای اینکه هر بار از دیتابس مستقیم گرفته بشن ، میتونید توی حافظه کش کنید و با سرعت بیشتری پاسخ رو ارسال کنید ، مورد آخر استفاده از سرور قوی تر هست ، اگر تمام موارد بالا رو انجام دادید و هنوز هم سرعت تون کم هست.