-
Notifications
You must be signed in to change notification settings - Fork 120
feat: add Intercom widget to rails world 2025 pages #501
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
base: main
Are you sure you want to change the base?
Conversation
Thank you @ibramsterdam! Will ask someone from the Rails teams to review and then we can hold until ready for merging. |
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.
@ibramsterdam Thanks for the change
LGTM, this matches the instructions at https://developers.intercom.com/installing-intercom/web/installation#for-website-visitors-without-logins |
Thank you both @akhilgkrishnan & @flavorjones! Will work with @ibramsterdam on a good day to merge. |
Maybe one comment: the widget loads late in the video (after the full page has been rendered). This 800-1000ms delay makes the site feel janky, especially when the rest of the site is already cached and renders in under 100ms. Would it be worth considering spending some time to try to speed this up? It looks like the intercom widget only loads once the page's An alternative might be to intentionally delay the widget appearing (to something like 5 seconds). |
Using a CDN that doesn't redirect and is properly cached helps a lot. Here's the one that's recommended in the turbo docs: diff --git a/_includes/world/2025/head.html b/_includes/world/2025/head.html
index ceb38551..eb399c51 100644
--- a/_includes/world/2025/head.html
+++ b/_includes/world/2025/head.html
@@ -62,7 +62,7 @@
<script src="/assets/world/2023/scripts/modal_component.js" defer></script>
<script type="module">
- import hotwiredTurbo from 'https://cdn.skypack.dev/@hotwired/turbo';
+ import hotwiredTurbo from 'https://cdn.jsdelivr.net/npm/@hotwired/turbo@latest/dist/turbo.es2017-esm.min.js';
</script>
<script type="text/javascript"> and now everything loads about 500ms faster. |
@flavorjones Thank you for your feedback! Do you want me to include your suggestion in this PR? |
Let's go for it @ibramsterdam. We have time to get any additional changes reviewed again, and it feels worth the additional effort. |
Works great! Thanks @flavorjones cached-hotwire-example.mp4 |
Context
Every year, people who come to Rails World have questions about the conference and tickets. Right now, @AmandaPerino answers all these questions, so her inbox gets very full. This year, we want to use Intercom to help with this problem.
This pull request adds the Intercom Widget to the header of the 2025 pages.
Note: Right now, this widget is set to be off within Intercom. If this pull request is merged and deployed, you will not see any changes yet. There is still work to do in Intercom. For example, we need to create a knowledge base for Fin.
How it looks on the website
widget_example.mp4
Intercom article
https://www.intercom.com/help/en/articles/167-install-intercom-for-visitors-and-leads-on-web