DEV Community

John Milner
John Milner

Posted on

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?

Top comments (4)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Have you tried dynamic import?

Collapse
 
johnmilner33 profile image
John Milner

Thanks for the info! Have you implemented this before? Could you share a Github Gist? I am still doing research on this.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

await import(RELATIVE_PATH) is the syntax.

Webpack knows.

Thread Thread
 
johnmilner33 profile image
John Milner

Thank you for the info! I will check this out😎🤓

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay