Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Cherry
tagDiv Member

Ok found the post with commenting 5 lines out of the functions.php (google fonts)

Do I have to add these lines into css?

What if, If I only wanne use Georgia and Times? (or something like Arial)

  • This reply was modified 12 years by Cherry.
Cherry
tagDiv Member

In my .htaccess :


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Cherry
tagDiv Member

Hey.

Well – on which pages / files do I have to remove the google Fonts?

Actually I added your code into the functions.php like this:

`function remove_cssjs_ver( $src ) {
if( strpos( $src, ‘?ver=’ ) )
$src = remove_query_arg( ‘ver’, $src );
return $src;
}
add_filter( ‘style_loader_src’, ‘remove_cssjs_ver’, 10, 2 );
add_filter( ‘script_loader_src’, ‘remove_cssjs_ver’, 10, 2 );`

What code should I insert into the .htaccess?

My Permalinks are user definied :

/%category%/%postname%/

Cherry
tagDiv Member

Do you think I should minify my “minified” stylesheet again, because insight is still complaining about that.

For the Google fonts item …
there is one trick I did, which is download that style sheet from Google being loaded for your pages, copy/paste the CSS from that file and put at bottom of your style sheet, and delete loading the Google fonts (I think you can comment that out in the functions.php file); this way the CSS is loaded as part of YOUR style sheet and NOT being loaded from Google. This saved me couple of points as one less download, and no worries about expirations or minification for the Google CSS for the fonts.

Google Fonts?
Which file should I download from where?
Sorry didn’t get that 😀

There are 4 components that can be minified
inline <script> tag #5
inline <script> tag #9
inline <script> tag #15
inline <script> tag #19

Do you know where I can find these?

  • This reply was modified 12 years by Cherry. Reason: add
  • This reply was modified 12 years by Cherry. Reason: add
Cherry
tagDiv Member

is it adviseable to minfy again the minfied version of stylesheet css or let it be like that?

Cherry
tagDiv Member

Hey Chris,

minified CSS- deleted Rev Slider.

I’m so glad you helped me: check this out.

http://gtmetrix.com/reports/cherrykoks.de/5VlGSdJX

and check my insights result for mobile…

only the desktop went from 92 to 89 :/

If you have any other ideas let me know 🙂

Cherry
tagDiv Member
 function remove_cssjs_ver( $src ) {
     if( strpos( $src, '?ver=' ) )
         $src = remove_query_arg( 'ver', $src );
     return $src;
 }
 add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
 add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

ah yeah now I can see it 🙂

Cherry
tagDiv Member

Hi Chris

Well I was searching for the exact code you were talking about for queries in the “pagespeed” thread, on which page is it? Can’t find it 🙁

btw: site with CF now :

http://gtmetrix.com/reports/cherrykoks.de/J8E4DNks

Cherry
tagDiv Member

http://cssminifier.com/ like this? Didn’t know that something like this exists.

😀

you’re my personal angel tonight. Thank you a lot dear, I know I’ll have homework to do by no later than weekend 🙂

If there’s still something to talk about- I hope I can still ask you

Goin’ to bed now, have a nice day 🙂

Cherry
tagDiv Member

Btw: I’m actually surprised that other “big” german blogs have way poorer results, despite all that : they’re famous with a huge readership.

Cherry
tagDiv Member

yeah thank you for this btw…

p.e


<img width="300" height="100" class="td-retina-data" data-retina="http://cherrykoks.de/wp-content/uploads/2014/08/log600.jpg" src="http://cherrykoks.de/wp-content/uploads/2014/08/log300opt.jpg" alt="CK LOGO "

Did I do this right- by writhing the height directly after width?

The Queries:

well actually I added a code via plug “Code Snippets” like this:

function remove_cssjs_ver( $src ) {
if( strpos( $src, ‘?ver=’ ) )
$src = remove_query_arg( ‘ver’, $src );
return $src;
}
add_filter( ‘style_loader_src’, ‘remove_cssjs_ver’, 10, 2 );
add_filter( ‘script_loader_src’, ‘remove_cssjs_ver’, 10, 2 );

before I included this – I had this code inside functions.php

/** Remove Query strings from Static Resources. */
function _remove_script_version( $src ){
$parts = explode( ‘?’, $src );
return $parts[0];
}
add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );
<?php
}
add_action(‘print_media_templates’, ‘td_change_backbone_js_hook’);

Should I use one of this or use a plugin?

Minify: yeah have seen had, but don’t know how to do (again: I’m no programmer and I don’t know css oder js )

my Cloudflare should originally do this (installed today- will take some time) Will this be enough? (or got an idea for dizzy blondes? 😀

Will have to change all this on the weekend…sadly I like the slider, looks good, but if its causing all the problems … 🙁

  • This reply was modified 12 years by Cherry. Reason: added
Cherry
tagDiv Member

http://gtmetrix.com/reports/cherrykoks.de/3AuGe7Xh

sorry here it is

How can I prevent things like this and do I have to change code for every future image I upload or else?

and how can I find out, where the images( which are affected) are used (in which file?)

I’m no programmer 😉

thanks

Cherry
tagDiv Member

thank you very much – yeah understand that and will do this 🙂

Cherry
tagDiv Member

Yeah did that, but no preview on main page (like feat. image) – it was just blank…. white space and under it the title of the article….

Cherry
tagDiv Member

oh ok, thank you very much!

Cherry
tagDiv Member

Oh ok – thanks will try that – got an idea for this: webmaster tools says: cherrykoks.de/search not existing.

when I click the lupe in the menue on the right site of my page- it looks like this:

http://cherrykoks.de/?s=

how can I rename the Search without installing an extra widget in the sidebar?

Would like to rename this back to “search”

Cherry
tagDiv Member

Only W3 cache, nothing else… (reinstalled because of PS)
can you tell me how to fix a broken like:
http://cherrykoks.de/wp-content/uploads/2014/08/30day400200tag61-100×65.jpg
picture not exisiting anymore and its making bad request.

Don’t know how to fix that

  • This reply was modified 12 years by Cherry.
Cherry
tagDiv Member

BTW this my htaccess:

# BEGIN W3TC Browser Cache
# Deflate Compression by FileType
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-shockwave-flash
</IfModule>

# END W3TC Browser Cache

AddType text/javascript .js

# turns cache on for 1 month
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css “access plus 1 month”
ExpiresByType text/javascript “access plus 1 month”
ExpiresByType text/html “access plus 1 month”
ExpiresByType application/javascript “access plus 1 month”
ExpiresByType application/x-javascript “access plus 1 month”
ExpiresByType application/xhtml-xml “access plus 600 seconds”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 month”
</IfModule>
<ifmodule mod_headers.c>
<filesmatch “\\.(ico|jpe?g|png|gif|swf)$”>
Header set Cache-Control “max-age=2592000, public”
</filesmatch>
<filesmatch “\\.(css)$”>
Header set Cache-Control “max-age=604800, public”
</filesmatch>
<filesmatch “\\.(js)$”>
Header set Cache-Control “max-age=216000, private”
</filesmatch>
<filesmatch “\\.(x?html?|php)$”>
Header set Cache-Control “max-age=600, private, must-revalidate”
</filesmatch>

# Webfonts
ExpiresByType application/vnd.ms-fontobject “access plus 1 month”
ExpiresByType application/x-font-ttf “access plus 1 month”
ExpiresByType application/x-font-woff “access plus 1 month”
ExpiresByType font/opentype “access plus 1 month”
ExpiresByType image/svg+xml “access plus 1 month”
</IfModule>

# gzip Compression if availiable
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>

Cherry
tagDiv Member

http://gtmetrix.com/reports/cherrykoks.de/STlNODSg

here tried again with super cache 🙁

Cherry
tagDiv Member

http://gtmetrix.com/reports/cherrykoks.de/ZLMI7Vc0

that’s mine right now… ok added the Snippets, was easy. 🙂

Cherry
tagDiv Member

Yeah, but got an idea for the htaccess file combined with W3 and CF?

If CF does a lot work with it, I should fix this….

anyways trying your idea with code snippet now.

Cherry
tagDiv Member

Yeah, installed Super Cache for a short time and then my PS was 60…. also with your options, so I HAD TO reinstall W3 Cache…. uncool.

Any other tip for the htaccess with W3 Cache?

Cherry
tagDiv Member

Ok, slowly 😀

I understand:

I should delete the plugin “query strings remover” and install code snippets? Y/N
When I installed the snippet plugin I have to put the code in the plugin and name it: Query Strings Remover? Y/N
After this I have to click “manage” and then “active”?

“Every time you will like to add some files too ur functions.php used that plugin too do it…”

Everytime I want to insert a code or everytime I install a plugin or other?

Will this help me better with “Remove query strings from static resources?

Or what’s the benefit?

Cherry
tagDiv Member

ok any setting at super Cache I have to enable?

and it’s WP Super Cache oder WP Super Cache clear all cache?

  • This reply was modified 12 years by Cherry. Reason: add
Cherry
tagDiv Member

Oh well big other question by all of that right now:

Now that I have CF and the Plugin for Query Strings…. is W3 Cache still necessary?

Or can I delete this plugin now?

Or should I deactivate : Async JS and CSS settings?

There’s a point with: Remove “?ver=XXX” part from URLs – Enabled….

but as you can see from my GTMetrix- still complaining about my query strings.

  • This reply was modified 12 years by Cherry. Reason: add
Viewing 25 posts - 26 through 50 (of 63 total)