-
Notifications
You must be signed in to change notification settings - Fork 5
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
Revert "Trial Prismic's next preview tool, part II" #10788
Revert "Trial Prismic's next preview tool, part II" #10788
Conversation
Size Change: -3.2 kB (0%) Total Size: 950 kB
ℹ️ View Unchanged
|
Although shareable links don't work locally with this implementation we've decided to go ahead and get it in production to see if it works there. There is no perfect solution at the moment but we'd rather not load the Prismic Preview Next tool's script for all users. If we're still struggling with previews being shared, then we can look a bit more closely at our implementation and if anything needs fixing. Worth repeating that Prismic will need to look at their third-party cookie solution soon as less and less browsers allow it by default (there are threads on their forums regarding it but no update). |
Reverts #10740 - apologies for the amount of reverts, but we've now tested Prismic's Next Preview toolbar in production, and it does work, but... what also happens is that the script loads for all users (in order to get the shareable link to work), which causes performance issues, loads jQuery for all and flags an a11y miss in pa11y (no title on the iframe element). Having read through an issue that was raised 5 years ago, it's been a thing for a long time and it doesn't look like it'll be fixed any time soon, so we've decided to revert back to our previous solution.
Slack chat here for decision making and here for how we detected the issue (pa11y!).