question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verify that SEO works well with differential loading

See original GitHub issue

I tried to quickly test next.angular.io with https://search.google.com/test/mobile-friendly to ensure that SEO was not being broken, but that didn’t work because of the robots.txt on next.angular.io.

So I deployed the version with 8.0.0-rc.2 (#30202) updates to https://angular-io-v42.firebaseapp.com/ and tested it and got an odd error (results link):

Screen Shot 2019-04-29 at 6 40 31 PM

Which seems to be due to some issue with how we transpile the code or load polyfills:

Screen Shot 2019-04-29 at 6 41 59 PM

Can someone check what’s up with this and ensure that the SEO works, and ideally works OOB for any ng new project created with 8.0.0 - I think that now that we have the polyfills differentialy loaded there should be no reason for ng new not to be SEO-compatible out of the box (no advanced stuff, just not blow up).

// @petebacondarwin @filipesilva

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
JiaLiPassioncommented, Apr 30, 2019

@petebacondarwin, thank you, and I tested it here, https://aio-test-27ab8.firebaseapp.com/, everything works fine. So I will reach @vikerman to make a new release of zone.js.

https://github.com/angular/zone.js/pull/1230 is ready, after it is merged, I will create a PR to update the version of angular repo.

1reaction
petebacondarwincommented, Apr 30, 2019

It looks like the problem is caused by Zone.js 0.9.0. This issue is almost identical… https://github.com/angular/zone.js/issues/1223#issuecomment-486110447

This deployment has the Zone.js downgraded to 0.8.29: https://aio-test-app-for-filipe.firebaseapp.com/ Running the Google indexer on it gives no error: https://search.google.com/test/mobile-friendly?id=x1ComSZAlxd4iU0sPwQxFQ

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understand JavaScript SEO Basics | Google Search Central
A good strategy is to use lazy-loading to only load images when the user is about to see them. To make sure you're...
Read more >
The Complete Guide To Angular Load Time Optimization
With differential loading, all the polyfills don't need to be loaded for browsers, that don't need them, thus can make this bundle smaller....
Read more >
On-Page vs Off-Page SEO: What's the Difference?
Off-page SEO focuses on increasing the authority of your domain through the act of getting links from other websites. A good analogy for...
Read more >
SEO vs. SEM: What's The Difference? - Backlinko
The main difference is that Search Engine Optimization (SEO) is focused on optimizing a website in order to get traffic from organic search...
Read more >
Beginner's Guide to SEO [plus FREE quick start worksheet]
The simplest way to check if a site or page is indexed is to perform a site: search. This works for both Google...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found