-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Editor preview]: Use unmapped hostname for the preview #39859
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~50 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
Just had a quick look with a private site in Chrome where I ran into the issue with previewing, and I can't replicate the issue on this PR. I'm not quite sure how to test on Safari though because I'm blocked by not being able to log in on |
Thanks @andrewserong Testing in Safari locally is becoming a real pain. I hope it will be addressed by the ITP squad. There are some interesting ideas over at p58i-8wz-p2#comment-44673 |
Do we have one now? Seems like there weren't many volunteers on the original post. |
Good question. The comments aren't exactly active as I expected them to be. I've been (mostly unsuccessfully) experimenting with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my testing, this seems to be an improvement 👍
Tested with a private site in Safari with production and calypso.live (this branch).
I also attempted to test an Atomic site, but I couldn't get visit block-editor
in Calypso for the Atomic site, I was redirected to WP Admin (plugins page 😕). I'm not sure if this is true of all atomic sites, but the unmapped URL will not be a wordpress.com URL in those cases.
Thanks for testing @sirreal !!! You got further than I did with Safari, hence the reason behind the feature flag. I was going to try out Atomic et. al., on wpcalypso since Safari was giving me so much grief. |
Forgot to login to WordPress.com first, then test on calypso.live 😊
This PR only affects WordPress.com. I created an Atomic site, and creating a draft post + preview worked only. I was only testing via |
Testing in Safari desktop version 13.0.5 on macOS Catalina. Using a mapped domain on a WordPress.com Simple site: First, in production:
Next, on the live branch from this pull request:
I do see a JS console error, but it doesn't seem to block the preview action.
Extra note — this WordPress.com Simple site is also marked "Private" in "Settings > Privacy." |
…eview window iframe urls will prevent reoccuring 404s. See: p58i-89x-p2
…o ITP) we could try to push this to horizon to test
9578bc5
to
c6b4588
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:vegemite:
🚢 |
Changes proposed in this Pull Request
This PR is a test to see whether using the unmapped site urls for the preview window iframe urls will prevent re-occurring 404s. See: p58i-89x-p2
Safari, it is reported, suffers from the 404 preview bug the most.
Naughty Safari!
Testing instructions
/block-editor/post/YOUR_SWEET_SWEET_CUSTOM_SITE
Fixes #30145 (I hope)