Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

on Safari and ios it doesn't always work #468

Open
chengp97 opened this issue Aug 13, 2021 · 0 comments
Open

on Safari and ios it doesn't always work #468

chengp97 opened this issue Aug 13, 2021 · 0 comments

Comments

@chengp97
Copy link

When I use the plugin to prerender the page of my vue project mobile app, I found that it runs normally on Android and Chrome browsers, but this pre-rendered page occasionally appears on Safari and iPhone. I have done a lot of attempts and explorations. But I still can't find out the problem. Now I put all the js at the bottom of the body, and added the following code at the end, the pre-rendered page is consistent, is there a better solution
window.onload = function(){ const script2 = document.createElement('script'); script2.src = "/mspmk-cli-financechannel/js/app.6251bdbb.js" document.body.appendChild(script2);}

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

No branches or pull requests

1 participant