{"action":"opened","issue":{"url":"https://api.github.com/repos/AutoLoadNextPost/Auto-Load-Next-Post/issues/130","repository_url":"https://api.github.com/repos/AutoLoadNextPost/Auto-Load-Next-Post","labels_url":"https://api.github.com/repos/AutoLoadNextPost/Auto-Load-Next-Post/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/AutoLoadNextPost/Auto-Load-Next-Post/issues/130/comments","events_url":"https://api.github.com/repos/AutoLoadNextPost/Auto-Load-Next-Post/issues/130/events","html_url":"https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/issues/130","id":332683783,"node_id":"MDU6SXNzdWUzMzI2ODM3ODM=","number":130,"title":"[Feature] - User defined JS events to be triggered","user":{"login":"spatsatzis","id":2199844,"node_id":"MDQ6VXNlcjIxOTk4NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2199844?v=4","gravatar_id":"","url":"https://api.github.com/users/spatsatzis","html_url":"https://github.com/spatsatzis","followers_url":"https://api.github.com/users/spatsatzis/followers","following_url":"https://api.github.com/users/spatsatzis/following{/other_user}","gists_url":"https://api.github.com/users/spatsatzis/gists{/gist_id}","starred_url":"https://api.github.com/users/spatsatzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatsatzis/subscriptions","organizations_url":"https://api.github.com/users/spatsatzis/orgs","repos_url":"https://api.github.com/users/spatsatzis/repos","events_url":"https://api.github.com/users/spatsatzis/events{/privacy}","received_events_url":"https://api.github.com/users/spatsatzis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T08:12:20Z","updated_at":"2018-06-15T08:12:20Z","closed_at":null,"author_association":"NONE","body":"Hello and thanks for this plugin, i'm using it in my wordpress blog and i like it very much.\r\nRecently i started using Jetpack's Lazy Load Images feature and thats why i'm creating this issue/feature request.\r\n\r\nIf you think my suggestion is a good one, i can make a pull request with the feature implementation.\r\n\r\nAs i can see at your source code, after each post is loaded there is an event triggered\r\n`jQuery( 'body' ).trigger( 'alnp-post-loaded', [ post_title.text(), post_url, post_ID, post_count ] );`\r\n\r\nLazy load is unaware of this trigger and it's not loading the images of the new post. As i can see in their source code this line will trigger the load images functionality:\r\n\r\n`jQuery( 'body' ).trigger('post-load');`\r\n\r\nBecause every plugin will have its own implementation and i understand you cannot be compatible with every plugin out there, you provide us with the alnp-post-loaded event, for solving such cases.\r\n\r\nMy main idea is that it would be great if there was one or more textareas in the admin panel with comma separated event names which the user would like to be triggered in each stage of loading the next post alongside the current events.\r\n\r\nThat will help non-developer users to deal with cases like mine.\r\n\r\nPlease tell me your opinion and i could provide this feature if you think it will be a good idea.\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"spatsatzis"}}