You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am writing from react-images library context, which turns to use glamor (or its kinda old version glam) for styles. I know this won't fix this library but at least it will fix all future dependencies.
speedy mode is harmful to applications which are pre-rendered (for example, prerender.io). As a result, search engines do not receive intended CSS (because it is cut by speedy mode in production builds).
The ultra-hack I needed to apply to fix my case was to run through all generated JavaScript code and replace this.isSpeedy there, as the library was already built & compiled:
sed -i 's/this\.isSpeedy\&\&/false\&\&/g' ./build/static/js/*
The text was updated successfully, but these errors were encountered:
nikitaeverywhere
changed the title
[POSSIBLE_PR] Speedy mode requires manual env variable due to various use cases (f.e. server-side rendering, prerendering, glamor used in the library, etc)
[POSSIBLE_PR] Speedy mode is harmful for some production use cases (f.e. server-side rendering, prerendering, especially glamor used in the library, etc)
Apr 8, 2020
nikitaeverywhere
changed the title
[POSSIBLE_PR] Speedy mode is harmful for some production use cases (f.e. server-side rendering, prerendering, especially glamor used in the library, etc)
Speedy mode is harmful for some production use cases (f.e. server-side rendering, prerendering, especially glamor used in the library, etc)
Apr 8, 2020
nikitaeverywhere
changed the title
Speedy mode is harmful for some production use cases (f.e. server-side rendering, prerendering, especially glamor used in the library, etc)
Speedy mode is harmful for some production use cases (f.e. server-side rendering, prerendering, especially when glamor used in the library, etc)
Apr 8, 2020
Hello! I am writing from react-images library context, which turns to use glamor (or its kinda old version
glam
) for styles. I know this won't fix this library but at least it will fix all future dependencies.speedy mode is harmful to applications which are pre-rendered (for example, prerender.io). As a result, search engines do not receive intended CSS (because it is cut by
speedy
mode in production builds).The ultra-hack I needed to apply to fix my case was to run through all generated JavaScript code and replace
this.isSpeedy
there, as the library was already built & compiled:The text was updated successfully, but these errors were encountered: