Coder Social home page Coder Social logo

Comments (4)

kfranqueiro avatar kfranqueiro commented on September 26, 2024

I'm not sure whether this presents a problem, but I'd point out that it appears there is a small difference between CDNJS's build and Google CDN's.

Looking at dojo.js.uncompressed.js, CDNJS has defaultConfig seeded with async:0 and does not have 'dojo-cdn' set in hasCache. Google CDN has async:"legacyAsync" and 'dojo-cdn':1 in hasCache.

Both of these are set in util/buildscripts/profiles/cdn.profile.js which is normally used to build the CDN distribution.

I poked a few simple test cases (including one using legacy dojo.require) and it didn't seem to stop it from working, so maybe this isn't important. Unfortunately my memory is fuzzy on what specifically the dojo-cdn has flag was solving.

from dojo-website.

PeterDaveHello avatar PeterDaveHello commented on September 26, 2024

Hi @kfranqueiro, the build on CDNJS was downloaded from official website. Is there anything I need to fix?

from dojo-website.

kfranqueiro avatar kfranqueiro commented on September 26, 2024

I just poked through Dojo's release script. Builds specifically for CDNs get posted to http://archive.dojotoolkit.org/cdn/, so you probably want to host the files from the zips there instead.

Note that some old versions prior to 1.7 were packaged differently and specific to each CDN, though I'm not sure you're concerned with releases that old anyway.

from dojo-website.

PeterDaveHello avatar PeterDaveHello commented on September 26, 2024

@kfranqueiro I'm very sorry for my late reply, and thanks for your help, I'm wondering if there is a git repo or npm package can serve these files? CDNJS currently supports the auto-update mechanism from git repo or npm package, if we can fetch the updates from one of them, we don't need manually update dojo on CDNJS anymore, thanks.

from dojo-website.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.