Why webpack use jsonp to get chunk script
My thought here is,
Whether webpack uses JSON
or JSONP
, it has to append the loaded chunk file into the document.
So webpack team might have though that instead of getting the script file first (JSON
) and then appending with the document, append the script tag first (JSONP
) and then let the script tag load the file.
Nice explanation here on JSON and JSONP