Progressive web app - displaying websites - iframe

I've got a question regarding PWAs. I'm supposed to create one, which should be displaying random webpages and a user should be able to answer some questions about them.
With ordinary web apps I've got a problem with iframes - sometimes it displays an incomplete page (for example without ads) or it doesn't appear at all.
Is there any way to resolve this issue while using PWAs?

Related

GTM Strips URL fragments breaking functionality

We have on our site a physician directory search which has been working cross platform for years. Over the last few months, we have been getting reports that the functionality is broken. My debugging into this issue has led me to find that GTM is actually stripping the URL fragments breaking the functionality in all browsers but IE.
We use Ajax calls to retrieve the directory page by page, 10 items at a time. Some results can yield up to 15 pages, but users are no longer able to get past page 2 of the result set. After page 2 it produces the search page again.
This was rewritten a number of years ago to utilize the URL hash as opposed to using the original cookie based system which simply didn't work. This can be easily reproduced using Chrome by:
Visit https://www.montefiore.org/doctors
Click Search By Specialty
Click Family Practice
Navigate to any secondary page, you will see that the hash fragments have been striped
When you try to navigate to any tertiary page, you are simply presented with the specialty list again.
I have gone through various debugging sessions and have even outsourced the issue to our outside developers, but the issue remains unresolved. Any idea on what could be causing GTM to strip out the fragments?

Bootstrap Within an iFrame

Hope this is right place to ask this.
We have a 3rd party company that provides content on our website via an iFrame. It's loading incredibly slowly (may be down to many factors I know).
Question is, does using Bootstrap to create this 'page within a page' make the load time any longer or would it be purely down the fact it's an iFrame that loads after the page has loaded? Would using any other language to serve the content inside the iFrame create a faster experience?
To the user this is so slow it's causing people to leave!
I have used iFrame in web apps that use bootstrap and I haven't seen a problem with the iframes loading and this was a frame with realtime data. The way I was using bootstrap was via a cdn. Also, If I try to see the website in the current corporation I work for the website and the iframe overall take longer to load due to all the security filters we have

Google custom search engine not showing result from my website

I recently created Google Custom Search Engine for my website and attached it on my site. Its working fine when I select
Search only selected site
under the advance option of Basic tab under setup menu of Google CSE. The problem arises when I select
Search the entire web but emphasize included site
As I understand from the last option that, it should show result from entire web but give preference to the included website. However, I could not find any result from my website.
I tried by typing in search
site:xxx.com
and it's showing all results to the specific website but if I place
site:mywebsite.com
It shows no results.
Can anybody shed some light on this.
Refreshing the page several times fixed it for me, though it's not a perfect solution. I think this is a problem that Google has to fix.

Google Analytics for mobile site

Hi I tried searching for information regarding this but get bombarded with other search results, might not be putting in the right question not sure….
Anyways hopefully someone here can help, what I’m having an issue with is my site which has a mobile version that’s separate from the main site, the mobile version can be used by anyone and has a link from the main one but anyone with a mobile device gets redirected to the mobile one. The mobile site is blind to search engines using the nofollow tag on any links that lead to it and hasn’t been cached which is what I want because it would be considered duplicate content, anyone with mobile devices gets redirected to equivalent page on mobile site.
I previously forgot to remove the analytics line from one of these pages and noticed it got cached in the search results so I removed it, which is the issue, how do I know how many people were visiting here (mobile) now etc…. Is there a way to get analytics information without having it go to the search results for duplicate content?
This seems to be a problem that can be fixed with Google Webmaster Tools, or tagging the content with a rel="canonical", please take a look at:
https://support.google.com/webmasters/answer/66359?hl=en

Web crawlers and IFrames

Hypothetical Situation: I have a small obscure website called "miniatureBoltsInCarburetors.com" which provides content about the miniature bolts which hold a carburetor together as well as some general related automotive information. My site also has a single page which allows someone to find the missing bolt in their carburetor, and while no one will access this page directly from my website, one billion other popular automotive sites have embedded this single page in their website using an iframe, yet not included a link back to my site.
I recognize that this question is related to SEO which is considered off topic, however, all of the many SEO related forums discuss the marketing steps one could take, and not the programming steps or strategies, and hope others will allow this question to be answered here.
I wish my site "miniatureBoltsInCarburetors.com" to be ranked high for general automotive searches. What could I do to allow the 3rd party sites which include an iframe back to my site to improve my ranking? Could using JavaScript in the iframe to create a link on the parent page provide any value? What about when my server renders the page, use PHP to get the referring URL from $_SERVER, and include it in the content?
I am providing a solution here. Not sure if this is what you want though.
In your page which is used by other websites in iframe you can put below Javascript. This javascript checks if the webpage is opened inside an iframe or directly in browser.
So using this check when you see it is opened in an iframe. On click on something navigate to your website.
// This works in all browsers
function inIframe () {
try {
return window.self !== window.top;
} catch () {
return true;
}
}
Also for your reference you can check the below URL.
How to prevent my site page to be loaded via 3rd party site frame of iFrame
Hope it helps.
Iframes are seen seperate pages by Google. Your approach may end up being penalized due to being sourced from untrusted site. According to Google Webmaster Support
Frames can cause problems for search engines because they don't
correspond to the conceptual model of the web. Google tries to
associate framed content with the page containing the frames, but we
don't guarantee that we will.
One of the best approaches to rank higher for a specific keyword is, make multiple related sites. In your case a 3-4 paged site about carburetors, bolts, other things your primary site contain would do it. These mini sites will be more intense about the subject due to less page count. Of course they should contain unique articles on each page. Then link from mini websites to primary websites and you can see the dramatic change.
In fact, the thing you are trying to do was a tactic to rank competitors down worked occasionally a few years ago. Now, it is still a risk.
I see. You don't want to mess up the page for your own site, but you want to do something with all the uncredited embeddings.
The solution is fairly simple:
Create a copy of the page.
Switch your site to use the copy.
Amend the version that countless other sites are embedding, so that there is a small link back to you. Or, add an iframe blocker script that will load your site.
If the page is active (ie user interacts with it to find the missing bolt) you could include a sales message with the response encouraging the user to visit your site.
I think that your goal is getting your link onto these other sites long enough to get indexed by Google before it is noticed by the people doing the embedding, so it's a bit of a balancing act.
I see conflicting advice about how Google indexes iframes. You should use a PageRank checker to see if the existing iframe page url has PageRank, and compare it to the page that you embed it on.
I dont Think you need to worry ,.
Google bot does seem to crawl through Iframes ,but the Web-Page Containing that Iframe is not Credited for that Content .. In other Words,, Page-Ranking of that particular Web-Page do not Change due to Contents from Iframe .
is IFrame crawled by Google?
Do robots crawl iframes?

Resources