Making a website. Which is better to include either to include cdn for bootstrap js Ajax or downloading the library in server? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Making a website. Which is better to include either to include cdn for bootstrap js Ajax or downloading the library in server?

If cdn then cdn for each page or including the common file for them?

6th Apr 2020, 9:02 PM
Learner
2 Answers
+ 4
Better to use downloaded file Because sometimes maybe cdn will not work so it will not affect your website. Generally we make a common header file throughout a Website. It is good practice to make common header file because in every page we need same links. So if we change in common file then it will automatically affect to other files. No need to go on each file to update header because suppose we have more than 100 files so it will be not possible to change in each file. So better to use common header file.
6th Apr 2020, 10:34 PM
A͢J
A͢J - avatar
+ 1
Thanks. I am working on forgot password module. Receiving email in gmail account but not in business domain account. What kind of error? Thanks in advance.
7th Apr 2020, 12:08 PM
Learner