Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
Running script on github page using jekyll

I have a problem having my origin version running a script I have in the index.html file.

The script runs fine locally if I have this in the index.html file:

<script  src="{{ base.url | prepend: site.url }}/assets/js/script.js"></script>

If I have that previous code and I try to run on github, I get this:

wrong github address

(Wrong github address)

If I change the code in the index file to this:

<script  src="{{ site.github.repository_url }}/tree/gh-pages/assets/js/script.js"></script>

Then the error is gone but the script still doesn't run and I get this:

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://github.com/montythepython/mixedmessages/blob/gh-pages/assets/js/script.js with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.

right github address? but with an added "blob"

(Right github address? But with an added "blob")

Which I am not sure what it means. Is it reading the script as a text file and because of it the script doesn't actually run?

Any help, very much appreciated The project is here: https://github.com/montythepython/mixedmessages

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda