jd440 Posted May 3, 2018 Share Posted May 3, 2018 Bonjour à tous, Sur un site j'ai un js qui est sensé se loader en async. Pour celà j'ai en footer <script… async scr…> ce qui fonctionne sans soucis mais dès que j'active: Déplacer le code JavaScript à la fin Celà me supprime l'attribut async… Auriez vous une solution… hack? Link to comment Share on other sites More sharing options...
doekia Posted May 3, 2018 Share Posted May 3, 2018 <script data-keepinline="1" async="1" src="..."> devrait résoudre le problème Link to comment Share on other sites More sharing options...
jd440 Posted May 4, 2018 Author Share Posted May 4, 2018 Super @doekia je te remercie Heureusement que tu es là Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now