{"action":"closed","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/14234","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/14234/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/14234/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/14234/events","html_url":"https://github.com/ampproject/amphtml/issues/14234","id":308321468,"node_id":"MDU6SXNzdWUzMDgzMjE0Njg=","number":14234,"title":"amp-analytics: Difficult to have timer trigger fire once reliably","user":{"login":"dougscher","id":9535591,"node_id":"MDQ6VXNlcjk1MzU1OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9535591?v=4","gravatar_id":"","url":"https://api.github.com/users/dougscher","html_url":"https://github.com/dougscher","followers_url":"https://api.github.com/users/dougscher/followers","following_url":"https://api.github.com/users/dougscher/following{/other_user}","gists_url":"https://api.github.com/users/dougscher/gists{/gist_id}","starred_url":"https://api.github.com/users/dougscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougscher/subscriptions","organizations_url":"https://api.github.com/users/dougscher/orgs","repos_url":"https://api.github.com/users/dougscher/repos","events_url":"https://api.github.com/users/dougscher/events{/privacy}","received_events_url":"https://api.github.com/users/dougscher/received_events","type":"User","site_admin":false},"labels":[{"id":284397641,"node_id":"MDU6TGFiZWwyODQzOTc2NDE=","url":"https://api.github.com/repos/ampproject/amphtml/labels/Category:%20Analytics","name":"Category: Analytics","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":{"login":"zhouyx","id":5419904,"node_id":"MDQ6VXNlcjU0MTk5MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5419904?v=4","gravatar_id":"","url":"https://api.github.com/users/zhouyx","html_url":"https://github.com/zhouyx","followers_url":"https://api.github.com/users/zhouyx/followers","following_url":"https://api.github.com/users/zhouyx/following{/other_user}","gists_url":"https://api.github.com/users/zhouyx/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouyx/subscriptions","organizations_url":"https://api.github.com/users/zhouyx/orgs","repos_url":"https://api.github.com/users/zhouyx/repos","events_url":"https://api.github.com/users/zhouyx/events{/privacy}","received_events_url":"https://api.github.com/users/zhouyx/received_events","type":"User","site_admin":false},"assignees":[{"login":"zhouyx","id":5419904,"node_id":"MDQ6VXNlcjU0MTk5MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5419904?v=4","gravatar_id":"","url":"https://api.github.com/users/zhouyx","html_url":"https://github.com/zhouyx","followers_url":"https://api.github.com/users/zhouyx/followers","following_url":"https://api.github.com/users/zhouyx/following{/other_user}","gists_url":"https://api.github.com/users/zhouyx/gists{/gist_id}","starred_url":"https://api.github.com/users/zhouyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhouyx/subscriptions","organizations_url":"https://api.github.com/users/zhouyx/orgs","repos_url":"https://api.github.com/users/zhouyx/repos","events_url":"https://api.github.com/users/zhouyx/events{/privacy}","received_events_url":"https://api.github.com/users/zhouyx/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/66","html_url":"https://github.com/ampproject/amphtml/milestone/66","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/66/labels","id":3409222,"node_id":"MDk6TWlsZXN0b25lMzQwOTIyMg==","number":66,"title":"Fixit Summit July 2018","description":"","creator":{"login":"rudygalfi","id":3888212,"node_id":"MDQ6VXNlcjM4ODgyMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3888212?v=4","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":70,"closed_issues":36,"state":"open","created_at":"2018-06-07T22:44:02Z","updated_at":"2018-07-19T18:07:40Z","due_on":"2018-07-21T07:00:00Z","closed_at":null},"comments":3,"created_at":"2018-03-25T04:30:06Z","updated_at":"2018-07-19T18:07:40Z","closed_at":"2018-07-19T18:07:40Z","author_association":"NONE","body":"The following will sometimes send 2 events after a page refresh\r\n\r\n```javascript\r\ntriggers: {\r\n    performanceTimer: {\r\n        on: 'timer',\r\n        timerSpec: { interval: 10, maxTimerLength: 10, immediate: false },\r\n        request: 'performanceEvent'\r\n    }\r\n}\r\n```\r\nSetting maxTimerLength: 9.9999999 seems to correct the problem.\r\nA better usage may be to set maxTimerLength: 0 to indicate a one shot timer, or something like this."}}
{"actor":{"display_login":"zhouyx"}}