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

implementing Server Side Rendering in Weex #20

Open
tejasvadhyani opened this issue May 28, 2018 · 1 comment
Open

implementing Server Side Rendering in Weex #20

tejasvadhyani opened this issue May 28, 2018 · 1 comment

Comments

@tejasvadhyani
Copy link

We require SSR for the following reasons:

  1. To support SEO, we require bots/crawlers to be able to see some relevant content from the server side.
  2. For normal users also, Content gets pre populated from the server and blank screen or mere placeholders are avoided. This improves the usability of our pages.

Now, Vue by default supports SSR and to know more how it works, there is a documentation at https://ssr.vuejs.org/ However, there is one major challenge we faced while implementing SSR.

The Weex UI architecture is based on the 750px width definition. There are no relative dimensions used like % or rem. Now, since on server, we cannot get the device width, it makes it difficult to render on server. So on server the page will render with scale=1 and on the client side, it will re render or adjust itself according to scale factor.

Therefore, we require support of percentages or some way to convert pixels into percentages.
Please help us out finding a suitable solution.

@prvn3294
Copy link

+1

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