<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gzip | Sorun Çözümü</title>
	<atom:link href="https://www.soruncozumu.com/etiket/gzip/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.soruncozumu.com</link>
	<description>Sorun Çözme Platformu - Türkçe Kaynak</description>
	<lastBuildDate>Tue, 27 Sep 2022 08:50:54 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.soruncozumu.com/wp-content/uploads/2015/05/cropped-favicon-100x100.png</url>
	<title>gzip | Sorun Çözümü</title>
	<link>https://www.soruncozumu.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>WordPress Gtmetrix PageSpeed Sorunları ve Çözümleri</title>
		<link>https://www.soruncozumu.com/wordpress-gtmetrix-pagespeed-sorunlari-ve-cozumleri/</link>
					<comments>https://www.soruncozumu.com/wordpress-gtmetrix-pagespeed-sorunlari-ve-cozumleri/#comments</comments>
		
		<dc:creator><![CDATA[SeLoRe]]></dc:creator>
		<pubDate>Sat, 02 May 2015 13:57:49 +0000</pubDate>
				<category><![CDATA[Webmaster]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[Defer parsing of JavaScript]]></category>
		<category><![CDATA[gtmetrix]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[page speed]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[yslow]]></category>
		<guid isPermaLink="false">http://www.soruncozumu.com/?p=63</guid>

					<description><![CDATA[Gtmetrix PageSpeed Sorunları ve Çözümleri Page speed sorunlarının wordpresste çözümü için çeşitli eklentiler mevcut fakat siteyi hızlandıralım derken eklenti kurup yavaşlatmanın anlamı yok diye düşünüyorum. Bu yüzden çeşitli araştırmalar yapıp bu sorunları kodlar yardımı ile kendi sitem için çözdüm ve sizlerde yararlanın istediğim için paylaşıyorum. Bu anlattığım çözümler apache web serverde denenmiştir diğerlerinde çalışır mı bilemiyorum. 1.Enable gzip compression Gzip ... <div><a href="https://www.soruncozumu.com/wordpress-gtmetrix-pagespeed-sorunlari-ve-cozumleri/" class="more-link" data-wpel-link="internal" rel="follow">Read More</a></div>]]></description>
										<content:encoded><![CDATA[<p><strong>Gtmetrix PageSpeed Sorunları ve Çözümleri</strong></p>
<p><a href="http://gtmetrix.com/" rel="external noopener nofollow noreferrer" data-wpel-link="external" target="_blank">Page speed</a> sorunlarının wordpresste çözümü için çeşitli eklentiler mevcut fakat siteyi hızlandıralım derken eklenti kurup yavaşlatmanın anlamı yok diye düşünüyorum. Bu yüzden çeşitli araştırmalar yapıp bu sorunları kodlar yardımı ile kendi sitem için çözdüm ve sizlerde yararlanın istediğim için paylaşıyorum. Bu anlattığım çözümler apache web serverde denenmiştir diğerlerinde çalışır mı bilemiyorum.</p>
<p><span style="color: #000000;"><strong>1.Enable gzip compression</strong></span><br />
Gzip sıkıştırma özelliğini kullanmak için sunucumuzda Deflate modülünün aktif olması gerekiyor. WHM'de bunu EasyApache ile apache derlemesi yaparken modül listesinden bulup aktif edebiliriz. gzip compression çözümü için <strong>.htaccess</strong> dosyamıza bu kodları ekliyoruz.</p>
<pre class="brush: php; title: ; notranslate">&lt;IfModule mod_deflate.c&gt;
  # Compress HTML, CSS, JavaScript, Text, XML and fonts
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE font/opentype
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/xml

  # Remove browser bugs (only needed for really old browsers)
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0&#x5B;678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  Header append Vary User-Agent
&lt;/IfModule&gt;</pre>
<p><span style="color: #000000;"><strong>2.Leverage browser caching</strong></span><br />
Tarayıcı Önbelleğine Alma Özelliğinden Yararlanmayı aktif hale getirmek için <strong>.htaccess</strong> dosyamıza bu kodları ekliyoruz</p>
<pre class="brush: php; title: ; notranslate">## EXPIRES CACHING ##

ExpiresActive On
ExpiresByType image/jpg &quot;access plus 1 year&quot;
ExpiresByType image/jpeg &quot;access plus 1 year&quot;
ExpiresByType image/gif &quot;access plus 1 year&quot;
ExpiresByType image/png &quot;access plus 1 year&quot;
ExpiresByType text/css &quot;access plus 1 month&quot;
ExpiresByType application/pdf &quot;access plus 1 month&quot;
ExpiresByType text/x-javascript &quot;access plus 1 month&quot;
ExpiresByType application/x-shockwave-flash &quot;access plus 1 month&quot;
ExpiresByType image/x-icon &quot;access plus 1 year&quot;
ExpiresDefault &quot;access plus 1 year&quot;

## EXPIRES CACHING ##</pre>
<p><span style="color: #000000;"><strong>3.Enable Keep-Alive</strong></span><br />
Bu özellik Off olduğunda apache her request(istek) için yeni bir connection (bağlantı) kurar. Bu durum sayfa açılış hızımızı büyük ölçüde etkiler. KeepAlive On olarak değiştirildiğinde, ilk istekten sonra her istemci için bağlantı belirli bir süre açık kalır. Her yeni istekte yeni bir bağlantı açılmaz, bunun yerine var olan bağlantı kullanılır. Bu özelliği kullanabilmek için öncelikle WHM panelden aktif etmeliyiz. Bunun için Apache Configuration &gt;&gt; Global Configuration bölümünden ayarları şu şekilde değiştiriyoruz.<br />
Keep-Alive  : On<br />
Keep-Alive Timeout : 3<br />
Max Keep-Alive Requests : 60</p>
<a class="x-img x-img-link" href="http://www.soruncozumu.com/wp-content/uploads/2015/05/Keep-Alive.jpg" data-options="thumbnail: &#039;http://www.soruncozumu.com/wp-content/uploads/2015/05/Keep-Alive.jpg&#039;" data-wpel-link="internal" rel="follow"><img decoding="async" src="http://www.soruncozumu.com/wp-content/uploads/2015/05/Keep-Alive.jpg" ></a>
<span id="x-lightbox-1" data-x-element-lightbox="{&quot;selector&quot;:&quot;.x-img-link&quot;,&quot;deeplink&quot;:false,&quot;opacity&quot;:&quot;0.85&quot;,&quot;prevScale&quot;:&quot;0.85&quot;,&quot;prevOpacity&quot;:&quot;0.65&quot;,&quot;nextScale&quot;:&quot;0.85&quot;,&quot;nextOpacity&quot;:&quot;0.65&quot;,&quot;orientation&quot;:&quot;horizontal&quot;,&quot;thumbnails&quot;:false}"></span>
<p>Daha sonra ise <strong>.htaccess</strong> dosyamıza bu kodları ekliyoruz</p>
<pre class="brush: php; title: ; notranslate">&lt;ifModule mod_headers.c&gt;
    Header set Connection keep-alive
&lt;/ifModule&gt;</pre>
<p>Keep-Alive özelliğinin aktif olup olmadığını bu siteden kontrol edebilirsiniz <a href="http://www.giftofspeed.com/check-keep-alive" rel="external noopener nofollow noreferrer" data-wpel-link="external" target="_blank">http://www.giftofspeed.com/check-keep-alive</a></p>
<p><span style="color: #000000;"><strong>4.Remove query strings from static resources</strong></span><br />
Bu sorunun çözümü için temanızın <strong>functions.php</strong> dosyasına bu kodları ekleyin.</p>
<pre class="brush: php; title: ; notranslate">/*Remove query strings*/
function ewp_remove_script_version( $src ){
return remove_query_arg( 'ver', $src );
}
add_filter( 'script_loader_src', 'ewp_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', 'ewp_remove_script_version', 15, 1 );
/*Remove query strings*/</pre>
<p><strong><span style="color: #000000;">5.Specify a Vary: Accept-Encoding header</span></strong><br />
Bu sorunun çözümü için <strong>.htaccess</strong> dosyasına bu kodları ekleyin.</p>
<pre class="brush: php; title: ; notranslate">&lt;IfModule mod_headers.c&gt;
  &lt;FilesMatch &quot;.(js|css|xml|gz|html)$&quot;&gt;
    Header append Vary: Accept-Encoding
  &lt;/FilesMatch&gt;
&lt;/IfModule&gt;</pre>
<p><strong>6.Defer parsing of JavaScript</strong></p>
<p>Bu sorunun çözümü için temanızın <strong>functions.php</strong> dosyasına bu kodları ekleyin.</p>
<pre class="brush: php; title: ; notranslate">function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
return &quot;$url' defer &quot;;
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );</pre>
<p>Bu kodu eklediğiniz halde <strong>defer parsing of javascript</strong> altında eğer <strong>wp-includes/js/jquery/jquery.js </strong>dosyasında uyarı veriyorsa jquery kütüphanesinin daha hızlı yüklenmesi için google'dan çekmenizi istiyor demektir. bunun içinde temanızın <strong>functions.php </strong>dosyasına bu kodları ekleyin</p>
<pre class="brush: php; title: ; notranslate">//Making jQuery to load from Google Library
function replace_jquery() {
if (!is_admin()) {
// comment out the next two lines to load the local copy of jQuery
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2');
wp_enqueue_script('jquery');
}
}
add_action('init', 'replace_jquery');</pre>
<p><strong>7.Specify image dimensions</strong></p>
<p>Bu uyarının altında belirtilen resimleriniz var ise bu resimlerin görüntü boyutları belirlenmemiş anlamına gelmektedir.<br />
Örnek olarak görüntü boyutları belirlenmemiş bir resim etiketi</p>
<pre class="brush: php; title: ; notranslate">&lt;img src=&quot;image.jpg&quot; /&gt;</pre>
<p>Bu da görüntü boyutları belirlenmiş bir resim etiketi</p>
<pre class="brush: php; title: ; notranslate">&lt;img src=&quot;image.jpg&quot; width=&quot;200&quot; height=&quot;200&quot; /&gt;</pre>
<p>Bunun kolay çözümü için <a title="grepWin" href="http://stefanstools.sourceforge.net/grepWin.html" rel="external noopener nofollow noreferrer" data-wpel-link="external" target="_blank">grepWin</a> uygulamasını kullanabilirsiniz. Kullandığınız temayı bilgisayarınıza indirdikten sonra klasöre sağ tıklayıp grepWin seçeneğine tıklayın. örneğin hatalı resmin ismi image.jpg olsun, search for kısmına image.jpg yazıp alttan search butonuna tıklayın. Bu temadan temaya farklılık gösterebilir,arama sonuçlarında content-featured.php veya content.php çıktı ise sırayla bunlara sağ tıklayıp notepad ile açıp yukarıda örnekte gösterdiğim gibi boyut belirleyin.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.soruncozumu.com/wordpress-gtmetrix-pagespeed-sorunlari-ve-cozumleri/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
