Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull request on load #2

Open
genifycom opened this issue Dec 22, 2017 · 1 comment
Open

Pull request on load #2

genifycom opened this issue Dec 22, 2017 · 1 comment

Comments

@genifycom
Copy link

genifycom commented Dec 22, 2017

Is there a way to pull items on load?

For example an element like this

<div data-url="/loadDiv1" /div>

would call the server with loadDiv1 via web sockets when the page loaded, not on a user action.

@thedumbterminal
Copy link
Owner

Interesting, initially I thought that this functionality would not be required as the server can update any HTML element just by sending the appropriate data down the websocket. But thinking about this further in a more complex application may need a way to trigger content to load from client side in addition to the server side.

Could you have a look at the PR linked to this issue and see if this fits your needs.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants