szdc / brackets-cdn-suggestions Goto Github PK
View Code? Open in Web Editor NEWProvides auto-complete suggestions for common scripts/CSS documents hosted by Google (e.g. jQuery, AngularJS)
License: MIT License
Provides auto-complete suggestions for common scripts/CSS documents hosted by Google (e.g. jQuery, AngularJS)
License: MIT License
Example: Bootstrap has CSS and JS, but only the JS file is entered into the document when you select the library.
This is tricky to solve because you'd have to ask the API for the assets property to see all the files used - without knowing which libraries have multiple files, doing so would mean the query results would be more than 15MB.
Need to explore this further (XMLHttpRequest and DOMParser) ... find out why they're returning null
I have this enabled, and it doesn't go too well with your extension. It shows the names when typed, but that's as far as it goes. I can type "<script jqu" and it'll give me jQuery as an option, but it just auto-completes it, it doesn't then go on to list version numbers and then change out to the link.
I know it isn't necessarily an issue just with your extension (or more literally, not even an issue with your extension at all, it could be the other extension's complete fault), but can you think of any way around this?
Note: with the other extension removed, yours functions as expected.
No suggestion, Nothing after installing the extension. I need to know if there is anything else i should do?
When a snippet is inserted, the spacing context is ignored and any text before the tag is removed.
Currently every time Brackets is opened libraries are re-downloaded. This will most likely change to be once per day by default.
When I start typing "<link
" and get suggestions (see: Screenshoot showing suggestions ) and then choose for instance "3.3.2
" my link tag is replaced with: <script src="//cdn.jsdelivr.net/bootstrap/3.3.2/js/bootstrap.min.js"></script>
.
Hello Jack,
it would be really nice if you could include the resources from https://cdnjs.com, you can get the list over json (https://cdnjs.com/packages.json). By the way, the JSON file gets loaded way faster over SSL/HTTPS than over HTTP, I think that probably is because of SPDY. So keep that in mind...
Google recommends library links should be served over HTTPS. It's fast, safe and works everywhere.
"We recommend that you load libraries from the CDN via HTTPS, even if your own website only uses HTTP. Nowadays, performance is fast and caching works just the same. The CDN's files are served with CORS and Timing-Allow headers and allowed to be cached for 1 year."
https://developers.google.com/speed/libraries/devguide
I'd like to see this plugin always use HTTPS for the links
Use the Preferences API to store libraries and the date on which they were last updated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.