The article explores the web page loading issues in relation with loading of static resources such as Javascript/CSS files and goes on to suggest Javascript libraries that could be used to enable conditional loading of JS resources thereby achieving faster webpage loading.
Following are some of the common use case scenarios that, if taken care, would enhance faster web page loading:
The above use case scenarios and related issues could be handled by the following set of Javascript libraries which, primarily, helps in conditional loading of static resources thereby enabling faster web page loading. However, this does go on to create issues in relation with additional loading time of below JS scripts. However, to me, it looks more like trade-offs that one need to explore and plan to use one of the below scripts appropriately.
Then, there are custom home-grown Javascript loaders such as BootLoader that companies like Facebook is using. However, the baseline is that the websites with high volume traffic need to take care of conditional loading (maybe in form of lazy loading or so) of static resources such as javascript, CSS and images. Thus, if you are part of web team of a high volume traffic website, consider using one of the above JS framework.
My personal favorites are RequireJS and YepNopeJS for both, JS and CSS handling and, LABJs for just Javascript resource handling.
There are techniques such as including link elements within <head> tag with different “rel” type such as dns-prefetch, pre-fetch, subresource, prerender etc which could speed up web page loading to a great extent. However, these techniques need proper planning in terms of diligently identifying the resources on which the techniques such as pre-fetch or pre-render could be applied.
[adsenseyu1]
We’ve all been in that meeting. The dashboard on the boardroom screen is a sea…
When building a regression model or performing regression analysis to predict a target variable, understanding…
If you've built a "Naive" RAG pipeline, you've probably hit a wall. You've indexed your…
If you're starting with large language models, you must have heard of RAG (Retrieval-Augmented Generation).…
If you've spent any time with Python, you've likely heard the term "Pythonic." It refers…
Large language models (LLMs) have fundamentally transformed our digital landscape, powering everything from chatbots and…