Post by akashnil3233 on Mar 16, 2024 0:21:15 GMT -7
The to serve them to users much faster than a regular server. They store copies of popular libraries such as jQuery a library for the JavaScript programming language Bootstrap a tool for creating responsive website design and others. How it works Lets imagine that you have a website hosted in Moscow. It was visited by a user from America. If you connect jQuery from your server in Moscow the file will take a long time to load going across the whole world. And if you connect via a CDN for example from Google Libraries then this user will download jQuery from the Google server in America.
Faster and closer. Another plus is that files from a CDN are CN Numbers usually cached in the browser. If a visitor has already been to a site that uses a CDN he already has this file in his cache that is downloaded locally on his device. This means the site will open instantly. Thus connecting popular javascript libraries via CDN will speed up the loading of your site for visitors from different regions and countries. And it will relieve your hosting of unnecessary load. Method Discard unused code Over time sites accumulate a lot of unnecessary scripts styles and modules that are no longer used but continue to be loaded.
It can be Unused plugins and extensions for CMS. They should be completely removed if they are not used. Outdated JavaScript libraries that have been replaced but the old scripts have not been removed. Duplicate scripts and styles. Sometimes in a project due to inattention the same functionality is included twice. Commented out sections of code. Comments also affect the weight of the page. Service scripts from development used only at the site creation stage. A thorough code audit and removal of all unnecessary elements can significantly lose weight and speed up the site.
Faster and closer. Another plus is that files from a CDN are CN Numbers usually cached in the browser. If a visitor has already been to a site that uses a CDN he already has this file in his cache that is downloaded locally on his device. This means the site will open instantly. Thus connecting popular javascript libraries via CDN will speed up the loading of your site for visitors from different regions and countries. And it will relieve your hosting of unnecessary load. Method Discard unused code Over time sites accumulate a lot of unnecessary scripts styles and modules that are no longer used but continue to be loaded.
It can be Unused plugins and extensions for CMS. They should be completely removed if they are not used. Outdated JavaScript libraries that have been replaced but the old scripts have not been removed. Duplicate scripts and styles. Sometimes in a project due to inattention the same functionality is included twice. Commented out sections of code. Comments also affect the weight of the page. Service scripts from development used only at the site creation stage. A thorough code audit and removal of all unnecessary elements can significantly lose weight and speed up the site.