what are the advantages and disadvantages of making ajax calls using jquery

0 votes
As jquery ajax calls makes life really cool without a page refresh... But still interested to know some of the advantages and disadvantages of making ajax calls with jquery.

As i am using ajax calls for all my Add,Edit and Delete operations in my website it works pretty well as of now... Still knowing about the disadvantages would make life easier during deployment.
Jun 21, 2022 in JQuery by gaurav
• 23,260 points
1,910 views

1 answer to this question.

0 votes

Advantages of AJAX

Reduce server traffic and increase speed

The first and foremost advantage of Ajax is its ability to improve the performance and usability of web applications.

To explain more detailedly, Ajax techniques allow applications to render without data, which reduces the server traffic inside requests. That being said, web developers can lower the time consumption on both side’s responses significantly.

As a result, your web’s visitors will never have to see a white window and wait for pages to refresh with Ajax implementation.

Enable asynchronous calls

Ajax benefits web developers in how its framework can be used for lazy loading. Those who don’t know what Lazy Loading is are an optimization technique that’s widely used for online content.

In essence, Ajax allows its users to make asynchronous calls to the web server without reloading the whole web page. As a web visitor, you don’t have to wait for the entire page to load entirely in order to access the entire page content.

Disadvantages of Ajax

We’ve just listed out all the areas where Ajax can show its great potential in implementation. Let’s move on to some possible drawbacks you can meet when using Ajax.

  • Open-source. View source is allowed, and anyone can view the code source written for Ajax, which makes it less secure compared to other technologies

  • Search Engines cannot index Ajax pages can not be indexed by Google as well as other search engines

  • The usage of Ajax can cause difficulties for your web pages to debug as well as make them prone to possible security issues in the future

  • Most importantly, Ajax has a considerable dependency on JavaScript, so only browsers that support Javascripts or XMLHttpRequest can use pages with Ajax techniques

  • Users will find it challenging to bookmark a specific state of the application due to the dynamic web page

  • From the users’ perspective, when you click the back button on the browser, you may not return to the previous state of the page but the entire page. This happens because the pages with successive Ajax requests are unable to register with the browser’s history

answered Jun 21, 2022 by rajatha
• 7,680 points

Related Questions In JQuery

0 votes
1 answer

What is the difference between AJAX with JavaScript and jQuery?

JavaScript is a programming language. JQuery is ...READ MORE

answered May 30, 2022 in JQuery by gaurav
• 23,260 points
825 views
0 votes
1 answer

What is the equivalent of jQuery .hide() to set visibility: hidden

Hello Kartik, There isn't one built in but ...READ MORE

answered Apr 28, 2020 in JQuery by Niroj
• 82,840 points
15,207 views
0 votes
1 answer

What is the difference between jQuery: text() and html() ?

Hello @kartik, The text() method entity-escapes any HTML that is ...READ MORE

answered Nov 25, 2020 in JQuery by Niroj
• 82,840 points
1,097 views
0 votes
1 answer

How to get the size of the screen, current web page and browser window?

Hello @kartik, You can get the size of ...READ MORE

answered Sep 10, 2020 in JQuery by Niroj
• 82,840 points
528 views
0 votes
1 answer

How to use jquery with asp.net ajax?

If you weren't aware, Microsoft is planning ...READ MORE

answered Oct 15, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
763 views
0 votes
1 answer

Is 'sparkline' a method?

I suggest you to check 2 things That jquery.sparkline.js is actually ...READ MORE

answered Nov 9, 2018 in Apache Spark by Frankie
• 9,830 points
1,301 views
0 votes
1 answer

What is jQuery?

Hey, jQuery is a fast and concise JavaScript ...READ MORE

answered Feb 14, 2020 in JQuery by kartik
• 37,520 points
1,347 views
0 votes
1 answer

Error: Global Variable is not accessable to local function

Hey kartik, A variable declared outside a function has a ...READ MORE

answered Feb 19, 2020 in PHP by Niroj
• 82,840 points
1,104 views
0 votes
1 answer

What is the meaning of symbol $ in jQuery?

$ sign is just a valid javascript identifier ...READ MORE

answered Jun 15, 2022 in JQuery by rajatha
• 7,680 points
3,528 views
0 votes
1 answer

jQuery $( function() {} ) and $(document).ready the same?

So technically they are both the same. Not ...READ MORE

answered Jun 13, 2022 in JQuery by rajatha
• 7,680 points
711 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP