Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudden malfunction ouf our webpages : polymer 1.7.0.2 partially moved ? #5706

Open
bschwarzRDR opened this issue Jan 17, 2023 · 1 comment
Open

Comments

@bschwarzRDR
Copy link

Hi,
Some parts of the website at my workplace have started to malfunction a few days ago (lots of elements are not showing anymore in the pages.). I inspected the problem in firefox using the developer's tools (F12) and tracked down the problem to the incapacity of loading two polymer libraries (namely polymer-micro.html and paper-ripple-behavior.html in version 1.7.0.2).

I suspect the problem has something to do with the displacement of resources from an url (https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/) to another one (https://cdn.jsdelivr.net/gh/download/[email protected]/). Indeed, in the developer's console all of polymer resources go through a http code 301 with a redirection, except for the two aforementioned libraries which end up with an http code of 200 but whose content is empty. As these two libraries are nowhere to be seen in the source of my page, I suspect they are "collateral" imports from the polymer libraries imported (see below for a list of those.).

I am not a web developer and my analysis sadly ends here. Furthermore, our data being confidential I can't provide an access to our website.

List of polymer libraries imported in the malfunctioning page :

<!--Polymer stuff -->
<script src="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/webcomponentsjs/webcomponents-lite.min.js"></script>
<link href="qliksense-card.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/iron-flex-layout/iron-flex-layout-classes.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-header-panel/paper-header-panel.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-toolbar/paper-toolbar.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-drawer-panel/paper-drawer-panel.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-icon-button/paper-icon-button.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-button/paper-button.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/iron-icons/iron-icons.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/iron-pages/iron-pages.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-menu/paper-menu.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-item/paper-item.html" rel="import">
<link href="polymer-mixins.html" rel="import">
<style include="iron-flex iron-positioning" is="custom-style"></style>
<style include="polymer-mixins" is="custom-style"></style>
@bschwarzRDR
Copy link
Author

The problem was fixed by replacing old urls with the new ones in my pages. Not sure what was the problem though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant