- its simple
- has a great ecosystem of plugins
- has great performance
Specifically this allows for:
- Much faster page loading using PJAX
- Pure javascript/CSS extensions - no PHP required
- Prevents Javascript injection by page editors
This saves me around 450 milliseconds per page in loading time:
The savings come from not having to parse the CSS and Javascript on the browser. The serverside content generation time is not noticeably affected.
But even if you are not using Dokuwiki you can get the same benefits using PJAX on your CMS of choice.
A strict Content Security Policy provides great protection against XSS attacks. But the question then arises how to get run-time generated data routed to the right bit of code. Jokuwiki solves by this embedding JSON in data-* attributes including the entry point for execution.
No comments:
Post a Comment