{"action":"opened","number":528,"pull_request":{"url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/528","id":35589480,"html_url":"https://github.com/defunkt/jquery-pjax/pull/528","diff_url":"https://github.com/defunkt/jquery-pjax/pull/528.diff","patch_url":"https://github.com/defunkt/jquery-pjax/pull/528.patch","issue_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/528","number":528,"state":"open","locked":false,"title":"Cache before executing JS option","user":{"login":"Torwori","id":4062236,"avatar_url":"https://avatars.githubusercontent.com/u/4062236?v=3","gravatar_id":"","url":"https://api.github.com/users/Torwori","html_url":"https://github.com/Torwori","followers_url":"https://api.github.com/users/Torwori/followers","following_url":"https://api.github.com/users/Torwori/following{/other_user}","gists_url":"https://api.github.com/users/Torwori/gists{/gist_id}","starred_url":"https://api.github.com/users/Torwori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Torwori/subscriptions","organizations_url":"https://api.github.com/users/Torwori/orgs","repos_url":"https://api.github.com/users/Torwori/repos","events_url":"https://api.github.com/users/Torwori/events{/privacy}","received_events_url":"https://api.github.com/users/Torwori/received_events","type":"User","site_admin":false},"body":"Many jQuery plugins require certain markup to initialize themselves. This doesn't pose a problem when navigating \"forward\" (for example 1 -> 2 -> 3 -> 4), but since pjax caches the html only after evaluating JS, *using the back/forward* button breaks the functionality of these plugins (for example, going 4 -> 3 -> 2 -> 3 doesn't work properly).\r\n\r\nUsing the `{cacheBeforeEval: true}` option, pjax will cache the HTML received from the server **BEFORE** executing JS, preserving the original markup and allowing the plugins to initialize themselves cleanly.\r\n\r\nThe default value is: `{cacheBeforeEval: false}` (the default behavior remains unchanged).","created_at":"2015-05-17T16:29:12Z","updated_at":"2015-05-17T16:29:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/528/commits","review_comments_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/528/comments","review_comment_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/comments{/number}","comments_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/528/comments","statuses_url":"https://api.github.com/repos/defunkt/jquery-pjax/statuses/d080b30dc4158fa0f2f06784e9dc02f271e45c9d","head":{"label":"Torwori:master","ref":"master","sha":"d080b30dc4158fa0f2f06784e9dc02f271e45c9d","user":{"login":"Torwori","id":4062236,"avatar_url":"https://avatars.githubusercontent.com/u/4062236?v=3","gravatar_id":"","url":"https://api.github.com/users/Torwori","html_url":"https://github.com/Torwori","followers_url":"https://api.github.com/users/Torwori/followers","following_url":"https://api.github.com/users/Torwori/following{/other_user}","gists_url":"https://api.github.com/users/Torwori/gists{/gist_id}","starred_url":"https://api.github.com/users/Torwori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Torwori/subscriptions","organizations_url":"https://api.github.com/users/Torwori/orgs","repos_url":"https://api.github.com/users/Torwori/repos","events_url":"https://api.github.com/users/Torwori/events{/privacy}","received_events_url":"https://api.github.com/users/Torwori/received_events","type":"User","site_admin":false},"repo":{"id":35772552,"name":"jquery-pjax","full_name":"Torwori/jquery-pjax","owner":{"login":"Torwori","id":4062236,"avatar_url":"https://avatars.githubusercontent.com/u/4062236?v=3","gravatar_id":"","url":"https://api.github.com/users/Torwori","html_url":"https://github.com/Torwori","followers_url":"https://api.github.com/users/Torwori/followers","following_url":"https://api.github.com/users/Torwori/following{/other_user}","gists_url":"https://api.github.com/users/Torwori/gists{/gist_id}","starred_url":"https://api.github.com/users/Torwori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Torwori/subscriptions","organizations_url":"https://api.github.com/users/Torwori/orgs","repos_url":"https://api.github.com/users/Torwori/repos","events_url":"https://api.github.com/users/Torwori/events{/privacy}","received_events_url":"https://api.github.com/users/Torwori/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Torwori/jquery-pjax","description":"pushState + ajax = pjax","fork":true,"url":"https://api.github.com/repos/Torwori/jquery-pjax","forks_url":"https://api.github.com/repos/Torwori/jquery-pjax/forks","keys_url":"https://api.github.com/repos/Torwori/jquery-pjax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Torwori/jquery-pjax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Torwori/jquery-pjax/teams","hooks_url":"https://api.github.com/repos/Torwori/jquery-pjax/hooks","issue_events_url":"https://api.github.com/repos/Torwori/jquery-pjax/issues/events{/number}","events_url":"https://api.github.com/repos/Torwori/jquery-pjax/events","assignees_url":"https://api.github.com/repos/Torwori/jquery-pjax/assignees{/user}","branches_url":"https://api.github.com/repos/Torwori/jquery-pjax/branches{/branch}","tags_url":"https://api.github.com/repos/Torwori/jquery-pjax/tags","blobs_url":"https://api.github.com/repos/Torwori/jquery-pjax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Torwori/jquery-pjax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Torwori/jquery-pjax/git/refs{/sha}","trees_url":"https://api.github.com/repos/Torwori/jquery-pjax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Torwori/jquery-pjax/statuses/{sha}","languages_url":"https://api.github.com/repos/Torwori/jquery-pjax/languages","stargazers_url":"https://api.github.com/repos/Torwori/jquery-pjax/stargazers","contributors_url":"https://api.github.com/repos/Torwori/jquery-pjax/contributors","subscribers_url":"https://api.github.com/repos/Torwori/jquery-pjax/subscribers","subscription_url":"https://api.github.com/repos/Torwori/jquery-pjax/subscription","commits_url":"https://api.github.com/repos/Torwori/jquery-pjax/commits{/sha}","git_commits_url":"https://api.github.com/repos/Torwori/jquery-pjax/git/commits{/sha}","comments_url":"https://api.github.com/repos/Torwori/jquery-pjax/comments{/number}","issue_comment_url":"https://api.github.com/repos/Torwori/jquery-pjax/issues/comments{/number}","contents_url":"https://api.github.com/repos/Torwori/jquery-pjax/contents/{+path}","compare_url":"https://api.github.com/repos/Torwori/jquery-pjax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Torwori/jquery-pjax/merges","archive_url":"https://api.github.com/repos/Torwori/jquery-pjax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Torwori/jquery-pjax/downloads","issues_url":"https://api.github.com/repos/Torwori/jquery-pjax/issues{/number}","pulls_url":"https://api.github.com/repos/Torwori/jquery-pjax/pulls{/number}","milestones_url":"https://api.github.com/repos/Torwori/jquery-pjax/milestones{/number}","notifications_url":"https://api.github.com/repos/Torwori/jquery-pjax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Torwori/jquery-pjax/labels{/name}","releases_url":"https://api.github.com/repos/Torwori/jquery-pjax/releases{/id}","created_at":"2015-05-17T16:01:46Z","updated_at":"2015-05-17T16:01:47Z","pushed_at":"2015-05-17T16:15:11Z","git_url":"git://github.com/Torwori/jquery-pjax.git","ssh_url":"git@github.com:Torwori/jquery-pjax.git","clone_url":"https://github.com/Torwori/jquery-pjax.git","svn_url":"https://github.com/Torwori/jquery-pjax","homepage":"http://pjax.heroku.com","size":2767,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"defunkt:master","ref":"master","sha":"d479d8881279ae8d1bfa9165c1c8e53ec3992189","user":{"login":"defunkt","id":2,"avatar_url":"https://avatars.githubusercontent.com/u/2?v=3","gravatar_id":"","url":"https://api.github.com/users/defunkt","html_url":"https://github.com/defunkt","followers_url":"https://api.github.com/users/defunkt/followers","following_url":"https://api.github.com/users/defunkt/following{/other_user}","gists_url":"https://api.github.com/users/defunkt/gists{/gist_id}","starred_url":"https://api.github.com/users/defunkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunkt/subscriptions","organizations_url":"https://api.github.com/users/defunkt/orgs","repos_url":"https://api.github.com/users/defunkt/repos","events_url":"https://api.github.com/users/defunkt/events{/privacy}","received_events_url":"https://api.github.com/users/defunkt/received_events","type":"User","site_admin":true},"repo":{"id":1413492,"name":"jquery-pjax","full_name":"defunkt/jquery-pjax","owner":{"login":"defunkt","id":2,"avatar_url":"https://avatars.githubusercontent.com/u/2?v=3","gravatar_id":"","url":"https://api.github.com/users/defunkt","html_url":"https://github.com/defunkt","followers_url":"https://api.github.com/users/defunkt/followers","following_url":"https://api.github.com/users/defunkt/following{/other_user}","gists_url":"https://api.github.com/users/defunkt/gists{/gist_id}","starred_url":"https://api.github.com/users/defunkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunkt/subscriptions","organizations_url":"https://api.github.com/users/defunkt/orgs","repos_url":"https://api.github.com/users/defunkt/repos","events_url":"https://api.github.com/users/defunkt/events{/privacy}","received_events_url":"https://api.github.com/users/defunkt/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/defunkt/jquery-pjax","description":"pushState + ajax = pjax","fork":false,"url":"https://api.github.com/repos/defunkt/jquery-pjax","forks_url":"https://api.github.com/repos/defunkt/jquery-pjax/forks","keys_url":"https://api.github.com/repos/defunkt/jquery-pjax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/defunkt/jquery-pjax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/defunkt/jquery-pjax/teams","hooks_url":"https://api.github.com/repos/defunkt/jquery-pjax/hooks","issue_events_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/events{/number}","events_url":"https://api.github.com/repos/defunkt/jquery-pjax/events","assignees_url":"https://api.github.com/repos/defunkt/jquery-pjax/assignees{/user}","branches_url":"https://api.github.com/repos/defunkt/jquery-pjax/branches{/branch}","tags_url":"https://api.github.com/repos/defunkt/jquery-pjax/tags","blobs_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/refs{/sha}","trees_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/defunkt/jquery-pjax/statuses/{sha}","languages_url":"https://api.github.com/repos/defunkt/jquery-pjax/languages","stargazers_url":"https://api.github.com/repos/defunkt/jquery-pjax/stargazers","contributors_url":"https://api.github.com/repos/defunkt/jquery-pjax/contributors","subscribers_url":"https://api.github.com/repos/defunkt/jquery-pjax/subscribers","subscription_url":"https://api.github.com/repos/defunkt/jquery-pjax/subscription","commits_url":"https://api.github.com/repos/defunkt/jquery-pjax/commits{/sha}","git_commits_url":"https://api.github.com/repos/defunkt/jquery-pjax/git/commits{/sha}","comments_url":"https://api.github.com/repos/defunkt/jquery-pjax/comments{/number}","issue_comment_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues/comments{/number}","contents_url":"https://api.github.com/repos/defunkt/jquery-pjax/contents/{+path}","compare_url":"https://api.github.com/repos/defunkt/jquery-pjax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/defunkt/jquery-pjax/merges","archive_url":"https://api.github.com/repos/defunkt/jquery-pjax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/defunkt/jquery-pjax/downloads","issues_url":"https://api.github.com/repos/defunkt/jquery-pjax/issues{/number}","pulls_url":"https://api.github.com/repos/defunkt/jquery-pjax/pulls{/number}","milestones_url":"https://api.github.com/repos/defunkt/jquery-pjax/milestones{/number}","notifications_url":"https://api.github.com/repos/defunkt/jquery-pjax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/defunkt/jquery-pjax/labels{/name}","releases_url":"https://api.github.com/repos/defunkt/jquery-pjax/releases{/id}","created_at":"2011-02-26T02:44:18Z","updated_at":"2015-05-17T16:22:14Z","pushed_at":"2015-05-10T02:36:49Z","git_url":"git://github.com/defunkt/jquery-pjax.git","ssh_url":"git@github.com:defunkt/jquery-pjax.git","clone_url":"https://github.com/defunkt/jquery-pjax.git","svn_url":"https://github.com/defunkt/jquery-pjax","homepage":"http://pjax.heroku.com","size":2767,"stargazers_count":11255,"watchers_count":11255,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1304,"mirror_url":null,"open_issues_count":49,"forks":1304,"open_issues":49,"watchers":11255,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/528"},"html":{"href":"https://github.com/defunkt/jquery-pjax/pull/528"},"issue":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/issues/528"},"comments":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/issues/528/comments"},"review_comments":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/528/comments"},"review_comment":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/pulls/528/commits"},"statuses":{"href":"https://api.github.com/repos/defunkt/jquery-pjax/statuses/d080b30dc4158fa0f2f06784e9dc02f271e45c9d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":14,"deletions":1,"changed_files":2}}