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

Improve AJAX support #60

Closed
1 task done
benjaminpick opened this issue Apr 11, 2019 · 4 comments
Closed
1 task done

Improve AJAX support #60

benjaminpick opened this issue Apr 11, 2019 · 4 comments

Comments

@benjaminpick
Copy link
Member

benjaminpick commented Apr 11, 2019

So far, this is implemented in 2.11.0:

  • JSON Endpoint
  • JS code to access the record of this endpoint
  • (Hidden feature) Body class via AJAX

Use this bug report to discuss any improvement ideas.

  • Add cookie cache for server response

Roadmap:

  1. Next months - Stabilize API (e.g. - I'm not sure if record.get() should support both camelCase and underscore_property), remove Beta flag
  2. Sometime in the future - Make it possible that the current shortcodes work automatically also via AJAX. (It will be hard to implement all properties. But I don't want to implement only some and get support requests. That's why it will probably take quite a while.)
@michaelkrieger
Copy link

The requirement for jQuery vs raw javascript limits the performance of this to requiring a bulky jquery file. Following the likes of Bootstrap removing jquery's heavy-weight payload.

It should ideally be a Native XMLHttpRequest after prototyping is completed.

@benjaminpick
Copy link
Member Author

benjaminpick commented May 11, 2020 via email

@benjaminpick
Copy link
Member Author

The jQuery dependency was removed. I will declare the AJAX API stable soon.

@benjaminpick
Copy link
Member Author

With 4.0 AJAX support (as outlined above) will be complete, see beta branch.

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

No branches or pull requests

3 participants
@benjaminpick @michaelkrieger and others