Forum Moderators: open

Message Too Old, No Replies

How much are you (still) relying on JavaScript?

         

Peter_S

2:20 pm on Sep 7, 2017 (gmt 0)

5+ Year Member Top Contributors Of The Month



Hi,

Another thing I was curious about, is, how much you are relying on JavaScript for the sites you are developing.

I am trying to make my site as fast as possible (fast in downloading, but also in rendering), and I try to use JavaScript as less as possible. I just have very few lines of JavaScript in the <head> (I experimented, and came to the conclusion, that "in my case", it's better to add this small JavaScript code directly into the page, than having an external file).

I only use it for lazy image loading, with very compact self-made script.

Of-course, there is also Adsense code.

ps: how to edit a topic title ? I would like to correct a mistake I am seeing.

NickMNS

3:00 pm on Sep 7, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I rely a lot on javascript and ajax. I see myself using more in the future.

I use it for things like form validation, and rendering graphics. I use ajax for adding features and functionality to a page, such as links to recommended content and adding details.

That said the main content of the page is generated server side so no JS for that. This is ensures that Googlebot will see and index the content.

I plan on looking into PWA's in the future and that requires a lot of client side functionalities so as I said I will be using it more in the future.

not2easy

4:25 pm on Sep 7, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



ps: how to edit a topic title ?
Not to take this off topic, but to answer - Click on the message#, on the drop down menu hit "Report Message" and let us know you'd like a Title change. ;)

lucy24

5:24 pm on Sep 7, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Almost none. On most pages, the only script is for analytics at the bottom of the page, with a <noscript> alternative. A scattering of pages do some optional font testing; users with scripting turned off won't notice. Oh, and I've got one ebook with a scripted option to disable commentary. (File under: I Guess You Had To Be There.) And another with display options for different MS sources. All of those count as Added Value.

I assume you're not asking about pages whose entire functionality relies on scripts. That's a special case.

tangor

10:29 pm on Sep 7, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I like it lean and mean, so very little. Like the color red, I use js sparingly when I paint my website.

keyplyr

7:52 am on Sep 8, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I rely a lot on javascript and ajax. I see myself using more in the future
Absolutely. I use JS everywhere and my navigation is Ajax.

Loads extremely fast, executes probably faster than any other scripting language, caches in browser, easy to write... what's not to like, especially now that Google has once again embraced it, albeit inline preferred.