≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #2043

Bug #2043: Synergy auto-download not working

Kind bug
Product wincent.dev
When Created 2012-12-31T21:18:01Z, updated 2013-01-01T02:49:12Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

Recent page optimization moved the JS to the bottom of the page, meaning that this inline snippet of JS higher up on the download page doesn't have access to jQuery at the time it uses $:

<script type="text/javascript">
    var download_url = "https://wincent.dev/l/synergy4";
    $(document).ready(function() {
      setTimeout('document.location = download_url;', 8000);
    });
</script>

Comments

  1. Greg Hurrell 2013-01-01T02:48:01Z

    Fixed it by just letting the download start after 8 seconds anyway (ie. ignoring the document ready event, seeing as implementing it in a cross-browser-compatible way is a pain):

    <script type="text/javascript">
        setTimeout('document.location = "https://wincent.dev/l/synergy4";', 8000);
    </script>
  2. Greg Hurrell 2013-01-01T02:49:12Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets