How bundling is helpful in improving the performance of page load? Explain.

Solution

When a user requests any page then browser loads that page along with all dependent files (scripts, CSS files, images). In order to load a file browser have to make a new HTTP request. So Browser  makes as many requests as the number of files are attached with the page.

Generally, browsers can make only 6 simultaneous requests to get resources from the server. Additional requests are queued by the browser for later processing. Hence, if we have multiple files then it may have to wait in the request queue.

Now using bundling, we can combine multiple files in one file, hence reducing the number of files to be loaded results in faster load time.

This video demonstrates why we need bundling and minification?

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media