DEV Community

Discussion on: Do You Really Need JavaScript?

Collapse
 
jagrati639 profile image
jagrati639

I have a question out of curiosity. Say theoretically speaking, we wanted to implement Google's auto suggestion without javascript. Is it technically possible however inefficient it is??. Like on pressing a character on search box, the browser can send again request to server and server could send back the new page's html content with suggestions list. Is it theoretically possible when say for a minute we are not concerned about efficiency.

-- Thanks

Collapse
 
vlence profile image
Victor Basumatary • Edited

Hi thanks for reading the article and leaving a question. Sorry couldn't get back to you earlier.

Short answer is I don't know, maybe. I've never tried making an auto suggestion feature without JavaScript :D

The point I was making in the article is that you shouldn't build your entire application in JavaScript IF the core features can be implemented without it because otherwise you'll be left with a completely unusable application if JavaScript is unavailable, like in the examples I gave. I think we will both agree that a website which has only the core features working is far better than a wallpaper.

Let's consider your hypothetical scenario. Can we build an auto suggestion feature without JavaScript? Maybe but I don't think it's worth the effort. The core feature of the Google homepage is that you can search, not the auto suggestion. The auto suggestion is nice to have but we can live without it.

Hope that helps.