All language subtitles for 3. Pros and Cons of Client-Side and Universal Rendering

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French Download
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,300 --> 00:00:01,200 In this video. 2 00:00:01,200 --> 00:00:08,550 What I'm going to do is explain some of the pros and cons between client side rendering as well as universal 3 00:00:08,550 --> 00:00:09,420 rendering. 4 00:00:09,690 --> 00:00:16,590 Now to do this, I am going to go to the Nux three documentation page and I'm going to click on the 5 00:00:16,620 --> 00:00:17,790 rendering modes. 6 00:00:18,360 --> 00:00:20,510 Now I haven't showed you the documentation. 7 00:00:20,520 --> 00:00:22,410 It is amazing. 8 00:00:22,680 --> 00:00:27,840 Now, if you don't want to look at the documentation, I tried to cover almost everything here in this 9 00:00:27,840 --> 00:00:29,760 course, so you don't have to worry about that. 10 00:00:30,060 --> 00:00:36,150 But if you ever need a quick refresher or a change in perspective, this documentation is terrific. 11 00:00:36,180 --> 00:00:40,560 Highly, highly suggest that it's always at V3 dot next year. 12 00:00:40,590 --> 00:00:41,580 Dot org. 13 00:00:41,610 --> 00:00:42,570 Really, really good. 14 00:00:43,090 --> 00:00:45,000 So over here I clicked on rendering modes. 15 00:00:45,240 --> 00:00:47,880 And as you can see here, we got the client side rendering. 16 00:00:47,880 --> 00:00:50,100 We also have universal rendering. 17 00:00:50,340 --> 00:00:56,760 Now by default in UX application is going to render everything with universal rendering, but we can 18 00:00:56,760 --> 00:01:01,020 also configure it to do client side rendering if we want to. 19 00:01:01,380 --> 00:01:05,220 Now we talked about exactly what both are and hopefully you guys understand them. 20 00:01:05,400 --> 00:01:07,800 Now let's talk about some of the pros and benefits. 21 00:01:08,010 --> 00:01:12,960 And you can see here we get actually in nice list of pros as well as benefits. 22 00:01:13,290 --> 00:01:14,970 So let's talk about some of the pros. 23 00:01:15,300 --> 00:01:18,120 So pro number one, development speed. 24 00:01:18,240 --> 00:01:21,150 So over here, it says when working entirely on client. 25 00:01:21,360 --> 00:01:26,100 On the client side, we don't have to worry about server compatibility of the code. 26 00:01:26,460 --> 00:01:30,780 For example, by using browser only APIs like the window object. 27 00:01:31,020 --> 00:01:32,440 And this is very true. 28 00:01:32,820 --> 00:01:38,990 So by working in the client itself, we don't have to worry about the server at all. 29 00:01:39,000 --> 00:01:41,580 And this actually gives me a really good example. 30 00:01:41,850 --> 00:01:44,010 Let's say I want to use window. 31 00:01:44,490 --> 00:01:47,400 If I were to use server side rendering, I have to check that. 32 00:01:47,400 --> 00:01:49,050 Hey, are we in the browser? 33 00:01:49,050 --> 00:01:50,700 Is the elements in the browser. 34 00:01:50,700 --> 00:01:52,110 Then we can use a window. 35 00:01:52,350 --> 00:01:55,440 So it just makes it a lot easier and a lot faster. 36 00:01:55,440 --> 00:01:57,190 So development speed is better. 37 00:01:57,720 --> 00:02:01,920 Now it is also cheaper because we don't handle a server. 38 00:02:01,950 --> 00:02:04,950 Everything is running inside of the browser. 39 00:02:05,250 --> 00:02:06,600 So we're client side rendering. 40 00:02:06,600 --> 00:02:11,550 We're not handling a server to send off all these HTML pages. 41 00:02:12,270 --> 00:02:18,270 And over here, when we're offline, it is better because again, everything is running in the browser. 42 00:02:18,480 --> 00:02:24,630 We do not have to make a request to a server which requires a Internet connection. 43 00:02:24,960 --> 00:02:26,310 So those are some of the pros. 44 00:02:27,180 --> 00:02:29,220 Now, let's look at some of the cons. 45 00:02:29,580 --> 00:02:36,030 Now, performance is one big con, mainly because while I showed you this, we have to go ahead and 46 00:02:36,030 --> 00:02:38,490 wait for everything to render. 47 00:02:38,490 --> 00:02:39,950 First you can see the process. 48 00:02:40,320 --> 00:02:42,420 We have to wait for everything to render. 49 00:02:42,420 --> 00:02:46,920 Then we need the data, so we need to pass it and then we get our HTML. 50 00:02:47,220 --> 00:02:51,160 So performance not that great with the client side rendering. 51 00:02:51,510 --> 00:02:59,280 Also search engine optimization isn't that great because well, as soon as we hit this page, all we're 52 00:02:59,280 --> 00:03:06,640 getting back is an empty HTML file and that is what we are rendering for search engine optimization 53 00:03:06,640 --> 00:03:11,190 that is going to pass, the HTML is going to see nothing and it's just not going to be good. 54 00:03:11,190 --> 00:03:14,490 And we might we might not be ranked as highly. 55 00:03:15,060 --> 00:03:17,790 So that is another con. 56 00:03:18,150 --> 00:03:20,160 So now let's talk about universal rendering. 57 00:03:20,160 --> 00:03:22,470 It's pros and it's cons. 58 00:03:22,860 --> 00:03:27,870 So pros obviously performance right away we get at least the HTML. 59 00:03:27,870 --> 00:03:29,730 So it seems as though we're getting our data. 60 00:03:29,730 --> 00:03:34,950 And then once we get our JavaScript, you can just quickly hydrate it and make sure that everything 61 00:03:34,950 --> 00:03:36,120 is rendered properly. 62 00:03:36,600 --> 00:03:41,850 Search engine optimization is great because again, right away we're getting let's go over here. 63 00:03:41,940 --> 00:03:44,100 Right away we're getting the HTML. 64 00:03:44,100 --> 00:03:51,360 So as soon as a search engine goes ahead and parses it, it sees the HTML and will allow us to rank 65 00:03:51,360 --> 00:03:52,500 a little bit higher. 66 00:03:53,400 --> 00:03:56,480 Now, cons are kind of the opposite of the pros here. 67 00:03:56,490 --> 00:04:02,940 So development constraints, it could be trickier and it is definitely trickier to develop knowing that 68 00:04:02,940 --> 00:04:08,460 we are universal rendering because we always have to keep the server in mind and also cost. 69 00:04:08,460 --> 00:04:09,870 So the cost of infrastructure. 70 00:04:09,870 --> 00:04:17,220 Now we need a server to continuously run and that is going to obviously be more expensive. 71 00:04:17,610 --> 00:04:21,720 So those are the pros and cons and it's definitely important to weigh the two together. 72 00:04:21,990 --> 00:04:25,350 I really like universal rendering and it's something that I typically do. 73 00:04:25,590 --> 00:04:29,130 But again, you've got to weigh the options depending on the app. 6918

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.