WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Jetpack and Google Page Speed Service (7 posts)

  1. calebeaires
    Member
    Posted 1 year ago #

    My site has Google Page Speed Service (CDN) on it. (Sometimes) Jetpack comments dont work with it. Is there someone with this issue? Is there some fix.

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    When you turn Google Pagespeed off, do Jetpack Comments start working again?

    I'm not familiar with this service, but is there an option to exclude parts of your site from being served through the Pagespeed service?

  3. calebeaires
    Member
    Posted 1 year ago #

    Just after I have activeted Google PageSpeed, the comments stops working. This service make my site faster.

    https://developers.google.com/speed/pagespeed/

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    If you cannot customize Google PageSpeed to exclude Jetpack Comments, I'm afraid you will have to deactivate the Comments module in the Jetpack menu.

    The extra caching added by Google PageSpeed doesn't seem compatible with Jetpack Comments.

  5. calebeaires
    Member
    Posted 1 year ago #

    It seans that here is an solution, but... where to put this codes?

    <script>document.write('<div>')</script>
    <span>JETPACK COMMENTS HERE</span>
    <script>document.write('</div>')</script>

    https://developers.google.com/speed/docs/pss/DeferJavaScript

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    You can edit Jetpack's plugin code in modules/comments/comments.php to add the pagespeed_no_defer attribute to all Javascript libraries added by Jetpack Comments.

    However, your changes will be overwritten with each plugin update, so you will have to edit the plugin files each time you update the plugin.

  7. Gary Eckstein
    Member
    Posted 11 months ago #

    Unfortunately I'm also experiencing problems using the PageSpeed service and the JetPack contact form. I deactivated the JetPack contact form and am using Contact Form7 which seems to work fine with the PageSpeed service.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic