John Milner Posted on Apr 18, 2020 Is it possible to build an application with Webpack that uses XHR to load pages of the site? If so, which plugins do you use? #webpack #xhr #javascript #ajax Top comments (4) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Pacharapol Withayasakpunt Pacharapol Withayasakpunt Pacharapol Withayasakpunt Follow Currently interested in TypeScript, Vue, Kotlin and Python. Looking forward to learning DevOps, though. Location Thailand Education Yes Joined Oct 30, 2019 • Apr 18 '20 Dropdown menu Copy link Hide Have you tried dynamic import? Collapse Expand John Milner John Milner John Milner Follow Front-end Web Developer Location San Francisco Work Creative Director at Banana Eleven Digital Joined Feb 27, 2020 • Apr 18 '20 Dropdown menu Copy link Hide Thanks for the info! Have you implemented this before? Could you share a Github Gist? I am still doing research on this. Collapse Expand Pacharapol Withayasakpunt Pacharapol Withayasakpunt Pacharapol Withayasakpunt Follow Currently interested in TypeScript, Vue, Kotlin and Python. Looking forward to learning DevOps, though. Location Thailand Education Yes Joined Oct 30, 2019 • Apr 18 '20 Dropdown menu Copy link Hide await import(RELATIVE_PATH) is the syntax. Webpack knows. John Milner John Milner John Milner Follow Front-end Web Developer Location San Francisco Work Creative Director at Banana Eleven Digital Joined Feb 27, 2020 • Apr 18 '20 Dropdown menu Copy link Hide Thank you for the info! I will check this outππ€ Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (4)
Have you tried dynamic import?
Thanks for the info! Have you implemented this before? Could you share a Github Gist? I am still doing research on this.
await import(RELATIVE_PATH)
is the syntax.Webpack knows.
Thank you for the info! I will check this outππ€