1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Quick Reply Doesn't Work in Chrome

Discussion in 'Troubleshooting and Problems' started by Saburov, Oct 7, 2016.

  1. Saburov

    Saburov Active Member

    Hello. my forum's quick reply function doesn't work properly in chrome and opera browsers. In firefox there is no problem. I cleaned my browsers cache, I tried different computers, disabled addons, even I have try on my friends but the problem continues.


    When I send something with quickreply, the sending symbol at the top right loading forever. Yes the message was sent but page doesn't refreh itself. I have to refresh the page for see my message. What causes this problem?

  2. Tracy Perry

    Tracy Perry Well-Known Member

    have you checked in the developer console to see if you are getting any javascript errors?
    Saburov likes this.
  3. Saburov

    Saburov Active Member

    I found the reason of the problem. Because of the google adsense code in the ad_message_body template. When I remove the code, problem solved. I think this is a kind of bug.
  4. Chris D

    Chris D XenForo Developer Staff Member

    Essentially it's a bit of a race condition between the auto detection of the width of the ad slot (presumably these are the "responsive" ads) and the post being inserted into the page by us. For example if their code detects a width of 0 (which is basically correct if the content is currently hidden) then the adsense code falls over and blocks the rest of our code running.

    I'm somewhat sure we implemented something which might help, but I'm currently struggling to locate it...
    Saburov likes this.
  5. Chris D

    Chris D XenForo Developer Staff Member

    Somewhat staring me in the face...

    <xen:if is="!{$isShowingNewPosts}">
    <center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- esnek reklam -->
    <ins class="adsbygoogle"
    (adsbygoogle = window.adsbygoogle || []).push({});
    <br />
    Note the xen:if conditional now surrounding your existing code; this will prevent the advert code from being loaded when a new post is created, and therefore prevent the problem.
    Brogan and Saburov like this.
  6. Saburov

    Saburov Active Member

    Chris, it works like a charm. You're the best :)

Share This Page