Comments (3)
Did you add the script with <script type="module"
, as in the example code on instant.page? That would prevent the globals, as nothing is exported.
from instant.page.
I use Shopify and the script is inserted into the theme through an App:
the "instant-page" script was not imported as <script type="module"
but as <script type="text/javascript"
I will notify the third party App team and come back with feedback.
For now, thanks!
from instant.page.
I got news about the bug, the App that includes your script cannot act on how to integrate the JS script into Shopify.
Shopify has decided that the script must be integrated in this way: <script type="text/javascript"
So if an app or widget wanted to use your code to integrate it into larger platforms, as explained above, it could break JS code if you leave the global variables without adding IFEE.
from instant.page.
Related Issues (20)
- Where to host instant page file for best performance? HOT 1
- intensity = "viewport" not working on Ajax Blog HOT 1
- Instant.page doesn't work well with Hugo HOT 3
- How to use in nuxtjs or vue? HOT 1
- The problem that the IDM download window automatically pops up
- Report issues with Kimai timetracker
- Apache (WHM) + InstantPage extremely slow on mouseclick HOT 1
- Prefetch with fetchPriority=high on hover/touchstart
- prerender option HOT 2
- Browser extension? HOT 2
- How to get update notifications HOT 2
- Laravel Integration - Causes Links To Appear In Modal
- "Delay on hover" working in an unexpected way
- Don't do speculative loading on Incognito/Private window HOT 2
- WordPress Speculation Rules plugin HOT 1
- Not working for Wordpress i installed the plugin HOT 3
- Can you support CS-Cart HOT 2
- awesome idea, but it somehow breaks https connection
- How to check if it's being utilized HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instant.page.