The Drawback of Client Side Rendering

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 มิ.ย. 2020
  • Client side rendering is cool until you want to do something that it can't do...
    ----
    Checkout my side projects:
    If you're into cooking: www.mysaffronapp.com/
    ----
    Join the Discord: / discord
    ----
    Patreon: / benawad
    ----
    Follow Me Online Here:
    Twitter: / benawad
    Twitch: / benawad
    GitHub: github.com/benawad
    LinkedIn: / benawad
    Instagram: / benawad97
    #benawad
    TikTok: / benawad ​

    ----
    Follow me online: voidpet.com/benawad
    #benawad
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 453

  • @navneethsubramanya.8465
    @navneethsubramanya.8465 4 ปีที่แล้ว +1350

    Ben's got 99 problems, but a girlfriend ain't one.

    • @phantomKE
      @phantomKE 4 ปีที่แล้ว +40

      Bruh! He says it with a straight face

    • @navneethsubramanya.8465
      @navneethsubramanya.8465 4 ปีที่แล้ว +20

      @@phantomKE I know right? He just leveled up with these jokes!

    • @abdulazizs824
      @abdulazizs824 4 ปีที่แล้ว +2

      🤣🤣

    • @blipojones2114
      @blipojones2114 4 ปีที่แล้ว +16

      jokes aside, he's not a bad looking dude at all, getting jacked wouldn't hurt tho, as long as he doesn't covert to a life coach and talk about it non-stop like that other coder youtuber John Sonmez.

    • @malvoliosf
      @malvoliosf 4 ปีที่แล้ว +8

      He has a girlfriend in Canada.

  • @willmakk
    @willmakk 4 ปีที่แล้ว +736

    Your metaphors are next level.

    • @keith6293
      @keith6293 4 ปีที่แล้ว +32

      here's your big mac.

    • @arturfil
      @arturfil 3 ปีที่แล้ว

      Aaaah I see what you did there...

    • @dickheadrecs
      @dickheadrecs 3 ปีที่แล้ว

      🎈 🏠 🎈

    • @alexcc316
      @alexcc316 ปีที่แล้ว

      "you are not a karen"

  • @programming2249
    @programming2249 4 ปีที่แล้ว +451

    I avoid client-side rendering in order to save CPU cycles for cryptocurrency mining.

    • @r0ckinfirepower
      @r0ckinfirepower 4 ปีที่แล้ว +5

      hahaha

    • @TechdubberStudios
      @TechdubberStudios 4 ปีที่แล้ว +7

      hilarious comment! but crypto mining is an inefficient form of revenue on client's computer, see TPB case experiment.

    • @ezshroom
      @ezshroom 3 ปีที่แล้ว +4

      @@TechdubberStudios It may pay less than ads, but it's many times better. I support websites that responsibly use cryptomining, and I block ads. Please, don't say that ads are better. They have never been any good to anybody's web browsing experience.
      Oh, and you can use cryptomining along with Arc, another earning method that does not involve ads.
      I'm done with Google's creepy trackers. Cryptocurrency mining is the future.

    • @TechdubberStudios
      @TechdubberStudios 3 ปีที่แล้ว +3

      @@ezshroom I am genuinely 100% with you on the crypto movement. I hate ads. Always have hated them. But there are at least 2....3 big corporations that come to mind that were built on the ads business model, but with crypto mining... can't find one. And browser-crypto-mining is not exactly a new technology. I really want it to replace ads. I really do. Hate the pop-ups, spying, tracking, that's going on. And the first corpo that comes to mind would be Netflix, when considering whom should adopt the crypto model. Because the users stay on netflix and binge-watch hours and hours!

    • @TechdubberStudios
      @TechdubberStudios 3 ปีที่แล้ว +2

      @@ezshroom also, do you happen to know any website/forum/subreddit focusing on browser-based mining? I would really like to join and dig in more into this subject.

  • @shaftsbury120
    @shaftsbury120 4 ปีที่แล้ว +19

    Fantastic job explaining this! As always, the hilarious dry humor and "next level" metaphors help drive home points and keep things entertaining. Really helped clear up a bunch of stuff and get me pointed in the right direction. Many thanks!

  • @evans8245
    @evans8245 4 ปีที่แล้ว +66

    solutions:
    0) pre-rendering with parcel or webpack
    1) server side rendering

    • @archmad
      @archmad 4 ปีที่แล้ว +3

      your solutions are not client side rendering. he mentioned it.

  • @Silver_Knee
    @Silver_Knee 3 ปีที่แล้ว +8

    I avoided serverside rendering a meta tag by registering a sub-domain, doing the serverside-rendering there and making my app only compatible with a set number of user-agents. Brilliant!

  • @CarlosMartinezTech
    @CarlosMartinezTech 4 ปีที่แล้ว

    I like how you explain, well done. Thank you for the quality content.

  • @stephenyin3509
    @stephenyin3509 4 ปีที่แล้ว +49

    Love the joke about girlfriend and client side rendering at the beginning

  • @dawid_dahl
    @dawid_dahl 4 ปีที่แล้ว +1

    This channel is slowly becoming one of my favorites on TH-cam! 😄

  • @gelismissuriyeli4440
    @gelismissuriyeli4440 ปีที่แล้ว

    This was the best explanation video I've seen on the matter... Kudos to you Mister...

  • @samsonbrody6308
    @samsonbrody6308 2 ปีที่แล้ว

    Great video. Trying to wrap my head around server side rendering and this video definitely helped

  • @salshouts
    @salshouts 4 ปีที่แล้ว

    This helped me alot! I am working on a project and my backend was almost finished. I was using create-react-app with router but switched over to next.js! Thanks alot

  • @tonylion2680
    @tonylion2680 3 ปีที่แล้ว

    I´ve been watching your videos and yes, the quality of the content is always awesome, new suscriber

  • @roshanican504
    @roshanican504 3 ปีที่แล้ว

    You make my day better

  • @0dyss3us51
    @0dyss3us51 4 ปีที่แล้ว +1

    You are hilarious and informative my dude haha, relatable. And damn dude the lenght of your link

  • @ticos.thepsourinthone9150
    @ticos.thepsourinthone9150 3 ปีที่แล้ว

    This video was hilariously informational, Ben! Thanks! Haha

  • @archmad
    @archmad 4 ปีที่แล้ว

    I had similar issue. good thing you found a better solution.

  • @mateusnascimento1989
    @mateusnascimento1989 4 ปีที่แล้ว

    Dude I was literally searching the name of this OPG yesterday. Thanks, dude!

  • @diegogimbernat9253
    @diegogimbernat9253 4 ปีที่แล้ว +237

    I love the tint on your glasses, it's serial killer-ish, where can i get a pair like those?

    • @bawad
      @bawad  4 ปีที่แล้ว +371

      a package arrives at your door after the 3rd kill

    • @fev4
      @fev4 4 ปีที่แล้ว +23

      @@bawad respect

    • @-Jakob-
      @-Jakob- 4 ปีที่แล้ว +2

      They are the left-behinds after each kill. That's the way you get it.

    • @johnnamtae9610
      @johnnamtae9610 4 ปีที่แล้ว

      @@bawad quick scope no scopes?

    • @flamendless
      @flamendless 3 ปีที่แล้ว +1

      Those tints are wiped off blood from killing

  • @mohamedaminebouguerra1514
    @mohamedaminebouguerra1514 4 ปีที่แล้ว +2

    Woah! My self esteem skyrocketed because I managed to keep up with you until the end :D Aside from that, your content is top notch, keep it coming man.

  • @maxwellmuhanda7940
    @maxwellmuhanda7940 2 ปีที่แล้ว

    this was so easy to understand am subscribed

  • @arpowers
    @arpowers 4 ปีที่แล้ว +30

    I love how Ben roasts Angular devs. I thought of that carrot farmer line off and on all day and cracked up every time.

  • @laenprogrammation
    @laenprogrammation 3 ปีที่แล้ว +3

    there is a workaround : just add conditional tag in the small server that builds your page. you can still use client side rendering except for meta tags

  • @PaulSebastianM
    @PaulSebastianM 4 ปีที่แล้ว +129

    For your sake and ours, I hope you DON'T get a girlfriend too soon.

  • @gompro
    @gompro 4 ปีที่แล้ว

    Very useful video as always

  • @bigdogsmallman
    @bigdogsmallman 3 ปีที่แล้ว +1

    I think you could easily do this in net core. In the startup class, in the configure for routing, you could filter each route with the correct meta tags. You could make this an extension and bing bang bosh, neat tidy job done

  • @drewlee7435
    @drewlee7435 ปีที่แล้ว

    Best explanation, Ever.

  • @BribedStudios
    @BribedStudios 4 ปีที่แล้ว +7

    Nice GatsbyJS colorway on that shirt 🤙

  • @sajedsoliman4780
    @sajedsoliman4780 3 ปีที่แล้ว

    You're great bro 💖💖

  • @kierangill4967
    @kierangill4967 4 ปีที่แล้ว +4

    Sapper + svelte gives you the best of both worlds

  • @krimo10
    @krimo10 4 ปีที่แล้ว

    This sounds brilliant and I would need this for my next mvp

  • @ntcc2821
    @ntcc2821 ปีที่แล้ว

    I like your humour😂😂...great lesson as well

  • @waynevanson277
    @waynevanson277 4 ปีที่แล้ว +2

    A solution to your problem could be to build a single page application, with each end point for the app being pre rendered.
    It's basically jamstack. Once a user loads one page, the others do not need to be loaded.

  • @classik305
    @classik305 4 ปีที่แล้ว +2

    Subbed for the consistent Angular claps 💀

  • @cedric_lfbr
    @cedric_lfbr 4 ปีที่แล้ว +2

    I had to do that once, I used a Lambda function since it was hosted on AWS, and the function intercepts the CloudFront distribution request and updates the HTML if the request comes from a robot, adding the OpenGraph tags.

  • @nilanjanmitra7459
    @nilanjanmitra7459 3 ปีที่แล้ว

    I use EJS and it allows for variables to be passed before sending the HTML to the client, so that can allow you to change the values in the meta tags.

  • @ufufu001
    @ufufu001 4 ปีที่แล้ว +494

    the girlfriend problem might be solved if you stop walking around wearing asexual flag shirts

    • @SayWhat6187
      @SayWhat6187 4 ปีที่แล้ว +17

      hahaha

    • @williamboshi1855
      @williamboshi1855 4 ปีที่แล้ว +32

      lmao, good catch, respect

    • @travistrue2008
      @travistrue2008 3 ปีที่แล้ว +12

      He's just playing hard to get. Karen gets it.

    • @johnyepthomi892
      @johnyepthomi892 3 ปีที่แล้ว +1

      But with this if he ever gets one, she will be the right one. Lol

    • @ragnarok7976
      @ragnarok7976 3 ปีที่แล้ว +1

      He do check a lot of aesthetic boxes from the virgin meme... Though I probably do too 😆

  • @arthurbruel5545
    @arthurbruel5545 4 ปีที่แล้ว

    If the only thing that needs to change is the meta tags (not the rendered bits), you can also modify the html before returning it to the client, inserting the relevant meta tags.
    It will probably lead to performance problems, but you could also perform an if condition on the referrer of the request to determine if you should perform such modifications.

  • @alldecentnamestaken
    @alldecentnamestaken 3 ปีที่แล้ว +3

    "It's like I spent a bunch of time building a house and now I want that house to fly." LMAO

  • @SmujMaiku
    @SmujMaiku 3 ปีที่แล้ว

    I had this problem once but my focus was towards crawlers. I ended up using some php to "render" the important bits like title, descriptions and links. Then the javascript would remove those elements and do the single page app business. It was back in carrot farmer code days but I'm sure happy coders can accomplish this just as well.

  • @arafatzahan3697
    @arafatzahan3697 4 ปีที่แล้ว

    You are my spirit animal dude.

  • @jimchapman4579
    @jimchapman4579 ปีที่แล้ว +1

    Greate video! I use Laravel on the server side to serve up everything. Static html pages and React apps or a combo of both. It's easy to embed a react app within a .blade template file. Meanwhile Laravel takes care of everything else, like API services, user registration and authentication, etc. Best of both worlds.

  • @alirezvani9149
    @alirezvani9149 3 ปีที่แล้ว

    Now you can make static pages for you dynamic frequently updated pages with Nextjs, How it works's is that it looks at the requested page and if it is present from the build time, sends it back and if it is not built during build time, builds on the go(run time) and adds it to the built pages for the next request. pretty amazing and game changing !

  • @tunyaa
    @tunyaa 4 ปีที่แล้ว

    netlify has a free experimental feature called pre-rendering, for me, it works with Facebook, it parses the right meta tags automatically with pictures also. My content comes from a backend via graphql and apollo. meta is being set with react helmet, the page is handled by react-router, and it's a create react app project. Hope this helps. You can also do prerendering very very easily with react-snap package, but you need to rebuild when data changes. (PS. Thanks for your work, I really like your videos)

  • @jhonasn
    @jhonasn 4 ปีที่แล้ว

    english is not my first language so i understanded only on second time i watched this, thanks for de vid i've not dev a site with link preview yet, very good to know it!

  • @BrotWurst
    @BrotWurst ปีที่แล้ว

    7:20 would it be possible to use the same url but check the header value on the for example nginx server?
    like is this user agent a bot (twitter, fb, etc.) => proxy to your slim API for only the meta data response
    and if its a real user (mac, windows, chrome, firefox user agent etc.) => proxy to your real page / default response / SSR page.
    maybe im forgetting something. i dont know if this could work.

  • @brianevans4
    @brianevans4 3 ปีที่แล้ว

    I think I might try react snap. That sounds good. Pre rendering on every build. Because often the layout of a page is the same even of the content changes. What do I mean by that: every reddit post will have the logo, the side bar, the footer and a div in the middle which contains the contents of the post. So you can prerender all that with an empty div, and then Hydrate it. Even with user generated content (as long as it is simple and consistent) you could prerender. Thanks for the video

  • @cauebahia
    @cauebahia 4 ปีที่แล้ว

    It works! I do exactly that with my react web SPAs. I use firebase and cloud functions to detect user agents and serve SSR version on the fly to robots and CSR version to users. This is also important to SEO indexing, cause some robots won't run any JS and expect html-only responses. Really enjoy your videos.

    • @leisiyox
      @leisiyox 3 ปีที่แล้ว

      What about some prerender.io ?

    • @cauebahia
      @cauebahia 3 ปีที่แล้ว

      @@leisiyox I thought about using it, but never tried it. Don't know how well it works. It would also cost more than my current firebase cloud function solution.

    • @leisiyox
      @leisiyox 3 ปีที่แล้ว

      ​@@cauebahia what are the conditions that you recommend using firebase?
      I thought about using it but I seek guidence

    • @cauebahia
      @cauebahia 3 ปีที่แล้ว

      @@leisiyox I like that they integrate lots of services in a single solution. When you create a firebase project, you instantly have access to file storage, hosting, database, authentication, and some other stuff that makes it really easy. I also like that Firestore has real-time listeners for your data. Really good for a client side rendered app. Also really like their documentation and the fact that you can easily access other Google Cloud services and API. There are many videos online about it. Check it out.

  • @ferbs8
    @ferbs8 3 ปีที่แล้ว

    Nice content!

  • @dmytrolesyk4045
    @dmytrolesyk4045 4 ปีที่แล้ว

    Keep us updated, I'm curious if it'll work and what will be the most difficult part. Also, I did not quite understand why you decided not to use react-snap

  • @alexsilny5748
    @alexsilny5748 4 ปีที่แล้ว

    I had the same issue last week and also was thinking about moving to nextjs, but having a separate domain and server makes a lot more sense.

    • @happysloth91
      @happysloth91 4 ปีที่แล้ว

      well Next js or any other SSR solutions doesn't mean you're gonna use one server for the backend and the front-end.

  • @ChrisStayte
    @ChrisStayte 4 ปีที่แล้ว +4

    Thanks Man!

    • @jinxblaze
      @jinxblaze 4 ปีที่แล้ว +4

      u watched a 9 min video in 3 ?

    • @ufufu001
      @ufufu001 4 ปีที่แล้ว

      @@jinxblaze that is what true supporters do: they appreciate the content even before watching it. it's beautiful.

    • @ChrisStayte
      @ChrisStayte 4 ปีที่แล้ว

      @@jinxblaze TRIPPLE SPEED

    • @jinxblaze
      @jinxblaze 4 ปีที่แล้ว

      @@ChrisStayte xD

  • @AndreiNedelus
    @AndreiNedelus 4 ปีที่แล้ว +2

    Hey I saw Wes Bos in one of his videos, he used cloud functions to generate the preview and puppeteer i guess to take a screenshot of the url

  • @kirasmith1147
    @kirasmith1147 4 ปีที่แล้ว

    I just used a node.js express server to host compiled create-react-app, this way you can modify the page and add meta tags if needed before serving the page. Sort of a mix of server and client side rendering as he said.

  • @pyrotaze
    @pyrotaze 4 ปีที่แล้ว

    Great vid

  • @toby6389
    @toby6389 4 ปีที่แล้ว

    Every time I have a problem with my apps I just wait for Ben to have them to so he can solve them for me.

  • @jvcmarc
    @jvcmarc 3 ปีที่แล้ว

    this is actually the first time I understood the difference between client side and server side rendering

  • @degraphe8824
    @degraphe8824 4 ปีที่แล้ว

    Wow
    I don't usually comment on these types of videos
    But bro
    This is amazing content please keep it up man

  • @kavy6114
    @kavy6114 3 ปีที่แล้ว

    Great solutions

  • @tarekali7064
    @tarekali7064 4 ปีที่แล้ว +2

    Benawad officially a CHAD?!

  • @TimeoutMegagameplays
    @TimeoutMegagameplays 4 ปีที่แล้ว +61

    Solution: NextJS, Angular Universal, Nuxt, etc.

    • @jpsimons
      @jpsimons 4 ปีที่แล้ว +2

      Also check out the create-exact-app npm (that's exact not react). Like NextJS but Express-forward design, full control at the server side level of what's going on.

    • @brandon.duffany
      @brandon.duffany 4 ปีที่แล้ว +3

      @@jpsimons Just FYI, next.js also gives you full server side control. You can just run next as a library within an express server. In my experience, it's super ergonomic while preserving the state-of-the-art benefits of next (code splitting, automatic static optimization, incremental static generation, etc.). Having said that, I have not yet checked out create-exact-app, and am not sure how it differs from nextjs.

    • @angshu7589
      @angshu7589 3 ปีที่แล้ว +3

      Why do I not like the sound of Angular Universal?

    • @milorad3232
      @milorad3232 3 ปีที่แล้ว +3

      @@angshu7589 because you are not carrot farmer. Although color of your profile picture kinda resembles the carrot :D

    • @TimeoutMegagameplays
      @TimeoutMegagameplays 3 ปีที่แล้ว

      @Adithya R Svelte Sapper is still in early development. I love Svelte, but Sapper is still far away from production-ready

  • @ytlongbeach
    @ytlongbeach 4 ปีที่แล้ว +1

    Our course -- I followed and understood all the way to the end. This is because I'm an unemployed ex-Tech Lead [who has never worked at a FANG company], and a thousandaire.

  • @zarghamkhan7948
    @zarghamkhan7948 4 ปีที่แล้ว

    hi ben i dont know what you are talking about, i am addicted to listen to you, may be it will start making sense someday, i am still learning react and some other frontend libraries.

  • @PaulSebastianM
    @PaulSebastianM 4 ปีที่แล้ว +1

    If you manage the web server, you could use the web server's router to do the same exact hack you described without the need for a different subdomain, just a route that checks the user-agent of the client and returns different HTML based on it.

  • @m1dway
    @m1dway 4 ปีที่แล้ว

    Your solution at the end is valid. Use reverse proxy to detect the request, and forward them appropriately.
    However, it's best to use SSR from the beginning if that's your intention.

  • @amanrubey
    @amanrubey 3 ปีที่แล้ว +1

    I will learn WebD so that I can enjoy these digs by Ben😂

  • @zBrain0
    @zBrain0 ปีที่แล้ว

    This video is 2 years old, I don't know if it existed when you made it but today there is a tool called puppeteer that uses a headless Chrome browser to actually pre-render your HTML that you can feed to bots and still feed the client side rendered to humans

  • @CloudiaNgaming
    @CloudiaNgaming 3 ปีที่แล้ว

    I love your humor.

  • @DanishAnton
    @DanishAnton 4 ปีที่แล้ว

    I was wondering what the previews you see on slack or text messages were called. Thanks

  • @Rssks
    @Rssks 3 ปีที่แล้ว

    2:05 i do it this way:
    Server serves response for parsers (meta, og, schema, jsonld and plain html content) and then comes along js that structures it up and takes over routing from this point, so when you navigate you actually don't "refresh"

  • @MrSurfsAlot
    @MrSurfsAlot 4 ปีที่แล้ว

    I love your humor

  • @LilPozzer
    @LilPozzer 3 ปีที่แล้ว +1

    cool dude

  • @pedroserapio8075
    @pedroserapio8075 4 ปีที่แล้ว

    Gatsby also solves the React single-page problem, since we can generate all the individual HTML, CSS, and JS pages.

  • @dcdales
    @dcdales 4 ปีที่แล้ว

    Cool stuff about magic links. Even if you hadn't talked about that, you mentioned 🥔. Automatic upvote.

  • @wcandillon
    @wcandillon 4 ปีที่แล้ว +19

    Very useful, thank you for pointing to react-snap. Happy Hacking Ben 🙌🏻

    • @rahulramsaha7266
      @rahulramsaha7266 4 ปีที่แล้ว +3

      I was just watching one of your videos on react native animation earlier xD
      Keep up the good job 🔥

  • @johnnietirado6131
    @johnnietirado6131 4 ปีที่แล้ว +1

    Had this issue while using a MeteorJS website running with ReactJs as the client side is that we created a crawler ( i think there is an npm project for this) that would go to every page, render it and save it on our DB. When a non-human (Google) would access the site it would served this rendered HTML, making it SEO friendly. Basically our server would use the User Agent to define what type of content the user would get served. Hope this help

    • @rajatrao5632
      @rajatrao5632 ปีที่แล้ว

      can you please explain what do you mean by 'render it and save it on db' , do you mean like render the dom elements and attach to html and store it in some link and add that link in db , or what exactly are you storing in db, if this is the case wouldn't it be too much for pages which are dynamic like /rob/photos, /sam/photos and likewise to be stored in db or am i missing something

  • @AntiWanted
    @AntiWanted 3 ปีที่แล้ว

    Nice

  • @JohnEricOrolfo
    @JohnEricOrolfo 3 ปีที่แล้ว

    my solution for this is:
    1. set a lambda as an index
    2. on the index lambda, it should run a headless tool (like a headless chrome) to render the page if the request is a bot, else just serve the raw js

  • @victorbjorklund
    @victorbjorklund 4 ปีที่แล้ว

    Nice solution. Only downside guess would be that Google wants you to show the same content to their bot as the user. But probably doesn't matter if you don't want to index those pages.

  • @zindev
    @zindev 4 ปีที่แล้ว

    Nice video Ben. Try this out and make a video about the results please.

  • @mayurbhor2231
    @mayurbhor2231 3 ปีที่แล้ว +1

    No one roasts angular like Ben

  • @vutesaqu
    @vutesaqu 4 ปีที่แล้ว

    Could you use something like pug generate a html file like the normal one that just contains the with meta tag links that have and just send that instead of the normal blank html (instead of having to different by client) ?

  • @fun6789
    @fun6789 4 ปีที่แล้ว

    I think he meant that we should use Next / Nuxt from the beginning. I used to face these problems and since then I use Nuxt for every project and never worry about these problems again

  • @stuartgreen5217
    @stuartgreen5217 3 ปีที่แล้ว +62

    I guess u never heard of prerender.io
    been using it for years

    • @angry_moose94
      @angry_moose94 3 ปีที่แล้ว +5

      Lol just killed the whole argument. Never heard of it before. Just goes to say that tech is exponential. Wonder if it will cause the cosmic crash eventually.

    • @ayushkhanduri2384
      @ayushkhanduri2384 3 ปีที่แล้ว +2

      yep yep yep , you just commented before me

    • @rodrigoabselcid
      @rodrigoabselcid 3 ปีที่แล้ว +1

      ​@@ayushkhanduri2384 same case, I just searched prerender before I add a comment about it to check if it's already mentioned and here it was.

    • @Saurabhandsonu1994
      @Saurabhandsonu1994 3 ปีที่แล้ว +1

      🤯

  • @mortezatourani7772
    @mortezatourani7772 4 ปีที่แล้ว

    I liked the idea however, I think it is still good to have SSR for all users or maybe SEO as well.
    Would you share your ideas on uFrontends, too? Are you preparing some sort of tutorial on that or what?

  • @Manivelarino
    @Manivelarino 4 ปีที่แล้ว +2

    I just put my meta tags with variables like %PAGE_NAME% %PAGE_IMAGE% and replace these later while serving the page with express. doesn't work while client-side routing but It works for link previews.

  • @jprocha816
    @jprocha816 4 ปีที่แล้ว

    I got kudos

  • @ryszard3756
    @ryszard3756 3 ปีที่แล้ว

    Hello Ben, Have You thought about differences between react-snap and NextJS/Gatsby from SEO perspective? I mean is there reason to use NextJS instead just react-snap to get better results in search engines? Does NextJS/Gatsby do something extra to perform better in SEO? Regards

  • @maxcantube
    @maxcantube 3 ปีที่แล้ว +1

    Going through a similar issue myself. My static site is hosted on S3 / CloudFront, orchestrated by terraform. My plan is to use CloudFront Origin Response triggers to trigger a lambda function to add the correct open graph tags to the response. I think this is the lightest weight option.

    • @wanjohi
      @wanjohi 2 ปีที่แล้ว

      Did you do it? Am exploring some of this ideas :)

  • @rishabhrathod888
    @rishabhrathod888 3 ปีที่แล้ว

    For some wierd cases like mine where only /particularRoute need to work like SSR what i actually tried was hosted gatsby project in particular route of CRA project and it worked just need to handle few re-routing cases

  • @jeserodriguez
    @jeserodriguez 4 ปีที่แล้ว

    I would use the same client-side bundle BUT adding a little bit of logic on the static assets server to add the meta tags to the HTML shell that embeds the client-side bundle. That way, you won't need to implement HTTP redirects, AND probably is better once you start working with deep-links for a mobile app.

  • @sridharkatta3461
    @sridharkatta3461 4 ปีที่แล้ว

    Prisma2 is released so when are you going to do a video on that ?

  • @amani_art
    @amani_art 4 ปีที่แล้ว +1

    Rails is this the best framework. Right i build all my rails views with react, but with rails server rendered meta tags.

  • @muslim2k
    @muslim2k 3 ปีที่แล้ว

    I have the exact same T-Shirt!

  • @hnasr
    @hnasr 4 ปีที่แล้ว +1

    Metaphors killing me 😂

  • @calvinlucian387
    @calvinlucian387 3 ปีที่แล้ว

    Your hate for angular is legendary. I love it.

  • @kinyakorirotti7437
    @kinyakorirotti7437 4 ปีที่แล้ว +1

    At this point, I just tune into to watch Ben thrash Angular

  • @nileriversoftware4070
    @nileriversoftware4070 3 ปีที่แล้ว

    You ever tried NextJS? It does SSR for the initial request (b/c it could be a bot), but CSR when you click links.

  • @uskro
    @uskro 3 ปีที่แล้ว

    Facebook's user agent is there for the facebook app browser as well.

  • @abogical
    @abogical 4 ปีที่แล้ว +2

    Immediately lost it at the intro