Website YSlow Socre Ko Improve Site Ko Speed up Kaise Kare


(Indrajeet Raj) #1

Koi hai jo in 4 ko Fix kar sakta. Maine bahut try kiya but nahi ho raha.
CDN ko chhor ke.


(Rupendra Kumar) #2

Inderjeet bhai aapne koyi plugin istemal to nahi kiya


(Jumedeen khan) #3

1. Add expires headers
Ye code blog .htaccess file me add karo.

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On 
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>

2. Use a Content Delivery Network (CDN)

Is issue ko fix karne ke liye aap CDN like CloudFlare, MaxCDN use karo.
3. Make HTTP request

Iska matlab aapki site ka ek bar me jo page open hota hai usme kam se kam http request honi chahiye. Average 20 request best hai.

4. Reduce DNS lookups

Iska matlab aapki site ka DNS time kam karne se hai. Aap WWW ko domain par nahi direct IP address par forward kar ms time kam kar sakte ho. Iski adhik jankari ke liye ye post padhe.


(Indrajeet Raj) #4

Nahi Rupendra bhai Bas Yost, onesignal notification, wps hide login, wp smush, Aksmit, w3 t c, ad inserter


(Indrajeet Raj) #5
  1. Code pahle se add hai.
  2. Ho nahi sakta kyki Cloudflare Login nhi ho pa raha. Tokken wrong aa raha bar bar use karna hi chhor diye.
  3. Kon c Request
    4.post me Solve karne ka Tarika nahi bataya gya hai. Kaha se kaise kare.

(Jumedeen khan) #6
  1. That’s not true agar aap expire header set karke rakhoge to tool kyu btayega. Check carefully.
  2. Kuch time bad try karo ya other cdn use karo.
  3. Indrajeet first aapko ye samajhna hoga ki ye request hai kya uske bad solve karna.

Main aapko 4 points samajha chuka hu unhe solve karna na karna aapki problem hai.


(Jumedeen khan) #8

Good, aap 3 problem hai.

  1. Google fonts
  2. One Signal API
  3. Ad service

Inme se aap ad service yani adsense me expire date add nahi kar sakte baki 2 ko fix kar sakte ho. Fonts ko aap apne server par host karo.

Abhi aapki site par 13 external javascript hai unhe kam karo.


(Indrajeet Raj) #9

.httacces me Pahle se Expire code add hone ke baad bhi 1 wala Problom hai sir


(Jumedeen khan) #10

Aap sirf unki script, image, fonts par expire date add kar sakte ho jo aapke server par host hai. One singal aur google fonts othwer server par host hai. Isiliye aapko problwem ho rahi hai. GTmetrix iske bare me clear btata hai ki konsi script par problem hai.

Fir se bta deta hu aapne jo code add kiya hai wo sirf aapke server wale content ke liye kaam karega external ke liye nahi. Aap chahe to fonts aur analytics script ko apne server se load kar sakte hai uske bad expire header work karega.


(Indrajeet Raj) #11

Font server me load kaise hoga


(Jumedeen khan) #12

Analytics code me "’//www.google-analytics.com/analytics.js’ script add hai. aap ise browser me open kare aur script code ko copy kar le. Ab apne hosting cpanle par jaye aur file manager >> wp-content >> your theme option me ja kar JS folder me analytics.js file create kar script paste kar de. Ab analytics code me ‘//www.google-analytics.com/analytics.js’ ki jagah apni script ka URL add kare. Done!


(Indrajeet Raj) #13

Analytic ho gya Font ko kaise kare


(Jumedeen khan) #14

Aap jo theme se google fonts ko remove karke same tarike se use bhi apne server par host karo aur CSS method se font use karo for example SMI ki CSS dekh lena.