Skip to content
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

Rework the script connection - use greedy loading #283

Open
fey opened this issue Jul 24, 2024 · 0 comments
Open

Rework the script connection - use greedy loading #283

fey opened this issue Jul 24, 2024 · 0 comments

Comments

@fey
Copy link
Collaborator

fey commented Jul 24, 2024

Problem description

Now the script is connected directly, the version from jsdeliver is loaded and because of this the script is cached by the browser. Now we don't have script versioning, and if we did, every vorkspace admin would have to change the link to the script. Thus, when changing the script, the old version will be pulled to the browser - we will need to reset the cache after updating the code.

Proposed solution

The first thing to do is to study how similar scripts that are embedded on the page work. For example, how the script about Yandex metrics works.
image

The script uses the date, maybe some other dates, to embed the required code on the page. We need to do something similar.

Eventually the way the script is connected should change, there will be a script that executes on the user page and embeds the current version of the widget, without caching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant