Comments (8)
Do you have an example of what exactly you want to do?
Thanks
from bootstrapcdn.
Hi jimaek.
Do you have an example of what exactly you want to do?
example_webcomponent_boostrapcdn.html
<!doctype html>
<html lang="en">
<head>
<!--- /* Required meta tags */ --->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--- /* Bootstrap CSS cdn 1 */ --->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!--- /* Imports polyfill with cdn external 2 ajax */ --->
<script src="https://cdn.bootstrapcdn.net/npm/[email protected]/dist/webcomponents/webcomponents-lite.min.js">
<!--- /* Imports custom element with cdn external 2 ajax */ --->
<link rel="import" href="https://cdn.bootstrapcdn.net/npm/[email protected]/dist/webcomponents/hello-world.html">
<title>I love bootstrapcdn and web components!</title>
</head>
<body>
<!--- /* Runs custom element from cdn1(jsdelivr), cdn2(bootstrapcdn) */ --->
<hello-world who="Unicorn"></hello-world>
<!--- /* Optional JavaScript; choose one of the two! */ --->
<!--- /* Option 1: Bootstrap Bundle with Popper */ --->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!--- /* Option 2: Separate Popper and Bootstrap JS */ --->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
-->
</body>
</html>
description-code: As we can see in this example, we have the official boostrap(cdn-1 in jsdelivr), boostrapcdn(cdn-2 for web component).
from bootstrapcdn.
The BootstrapCDN at the current stage is a jsDelivr endpoint that pulls files from the official Bootstrap NPM packages.
So I dont understand the question because if Bootstrap is not distributing web components then obviously we cant add them.
But also there is nothing stopping you from using any other web component made by anyone and hosted on Github or NPM since jsDelivr supports both.
The only question that I am not sure about is if they are going to work without the correct HTML mime-type. @MartinKolarik
from bootstrapcdn.
Hi jimaek.
The BootstrapCDN at the current stage is a jsDelivr endpoint that pulls files from the official Bootstrap NPM packages.
So I dont understand the question because if Bootstrap is not distributing web components then obviously we cant add them.
So... I asked about it, boostrap by default does not have webcomponents, I was thinking of creating web components and hosting in this repository to distribute to all people. That way, anyone could reuse the code and redistribute it in their own way too.
But also there is nothing stopping you from using any other web component made by anyone and hosted on Github or NPM since jsDelivr supports both.
I understand what you said and I agree with this.
from bootstrapcdn.
@codehangen in that case you're welcome to do it and distribute it as a separate package via npm and jsDelivr.
from bootstrapcdn.
Hi MartinKolarik. So... What do you think of the idea of a web components in cdn?
from bootstrapcdn.
Please see https://www.jsdelivr.com/ - you'll get it on our CDN by simply publishing it to npm.
from bootstrapcdn.
Hi all. All my doubts were clarified.... so... please close this issue... and thanks for all the feedback.
from bootstrapcdn.
Related Issues (20)
- Replace request dev dependency with something else
- Where can the integrity value of a v3.3.7 Bootswatch theme be found? HOT 2
- Display: Swap Support On @font-face's HOT 1
- Consider asserting a `Cross-Origin-Resource-Policy`? HOT 16
- Enable x-content-type-options for CSS and JS files HOT 9
- Enable x-xss-protection HOT 2
- maxcdn.bootstrapcdn.com provides expires certs HOT 3
- This is a test
- Font Files for Bootstrap3.3.6 are throwing CERT Error HOT 2
- Was stackpath.bootstrapcdn.com down or slow over the weekend 19 and 20th Sept 2020? HOT 2
- Investigate CDN tests slowness HOT 3
- Design refresh HOT 1
- Adding a new integration HOT 1
- Add bootstrap icons support
- bootstrapCDN certificates are showing as not valid HOT 7
- Who runs `maxcdn.bootstrapcdn.com` and `stackpath.bootstrapcdn.com`? HOT 4
- Blocked by CORS Policy HOT 5
- navbar resources dropdown menu showing same link for the list item 2 & 3 HOT 1
- Replace GA HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrapcdn.