With PageSpeed you’d be better using the HTML Rewriter method, and disable the caching plugin (if you have one) you are using on the WP side.
I don’t know why… But for me the HTML Rewriter don’t work… (maybe a permission issue?). Any idea how to fix it?
Now, I just searched the web and looks like if you insert a specific tag it tells to pagespeed to not touch your .js
See the link, I think it can help… with time, more and more users are gonna use wp retina 2x + Google Pagespeed
https://developers.google.com/speed/pagespeed/module/filter-js-defer
Tks
The problem is unrelated to Google Page Speed. I use it as well as the HTML Rewriter.
Can you try to see if it works without the HTML Rewriter? And if you active the mode DEBUG of the plugin?
I know that the HTML Rewriter is not affected by PageSpeed….
When I use the client side, everything works fine (but is kinda slow).
When I turn on HTML Rewrite, nothing happens (and no errors in the FireBug)… maybe a problem with .htaccess?
That’s my .htaccess:
#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
#End Gzip
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cursos/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /cursos/index.php [L]
</IfModule>
# END WordPress
Tks for the help
Question #2
The link that I sent to you, has the code to be inserted in the .js to make possible using the retina.js when the function defer javascript (that is a option, not default) is on.
I think is a good thing to add to your .js (increase compability with this feature)
When I turn on HTML Rewrite, nothing happens (and no errors in the FireBug)… maybe a problem with .htaccess?
The HTML Rewrite doesn’t use the .htaccess.
However if you use HTML caching (through a plugin or your hosting service) it might not work. Otherwise… it should π
I think is a good thing to add to your .js (increase compability with this feature)
Very good remark actually and I should do that. There is no way to do it simply with the WordPress API though… except if I trick it (which I don’t want to do). I keep this in mind and definitely will react ASAP when I can do something π
Tks for your response… But I still can’t find out why the Rewrite don’t work…
If I turn off my only caching (Pagespeed), clear the browser cache, still have no success at all… Very weird…. Do you think it can be something related to my theme?
If you wan’t to take a look…
http://www.coexiste.com.br/cursos
It can be many many things… Maybe you should try running the website on your localhost and do some testing, maybe with a different theme, different plugins, etc.