This component simply refresh newsfeed page every 30 seconds without reloading whole page. There is refresh only if user is not typing or writing anything in wall or comment forms. If any of the form is filled it will not refresh the page. After refresh it takes the scrollbar to the top of page.
If this component have conflict with other component simply disable it as i have no time to make it more complex coding.
Well, whatever way the basic part gets implemented in the end, I think it still would either need a member-settings part to control the number of inserts/popups per minute. Or perhaps just a silent 'new-posts-counter' as with Friend Requests. Because with larger communities and a lot of new posts, all these inserts or popups will be annoying sooner or later.
Personally, I would vote for the counter which if clicked resets to zero and forces a page reload.
like it already.
But this one is good
quote:
Another idea for different component could be a script that checks new posts and if there is a new post it shows some friendly popup like : new posts (reload). It will reload the page.|
en quote.
I agree that is why this component is simple one :) before i thought i can create a component to show new post on top but it requires new complex coding for pagination :)
Lets suppose 10 new posts created while user just visited site. Prepending new posts will change pagination results.
Another idea for different component could be a script that checks new posts and if there is a new post it shows some friendly popup like : new posts (reload). It will reload the page.
Oops yeah ... basically working ... but I have my doubts ...
With larger communities there may be numerous new posts I want to read first when I'm entering home.
So, especially on mobile devices I would have a scrolled down a lot of lines to read ... let's say ... new post No. 8. Then, right in between, I'm not really finished reading, Refresh Newsfeed takes me back on top.
It's nice that the component is indeed aware to not disturb my writing, but it doesn't 'know' that I just want to read something and do not want to be disturbed as long as I'm not finished.
A current workaround may be to enter just one character somewhere before starting to read ... 😅