Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. The Raven

    New to react - How to?

    Thank you for such detailed explanation. Very helpful. :)
  2. The Raven

    New to react - How to?

    Hello there, I am new to react = I want to start learning it, however, I have no idea how to start and use it locally. Of course I can take a look on youtube some tutorials but most of them are kind a few years old. What am I supposed to do to make a start and after that, I will get the hang of it.
  3. The Raven

    HTML & CSS PageSpeed Insights bad score

    This comes due ads. Without ads it is significantly improved. It has nothing to do with my scripts. You are trying to tell me that having images locally saved is not a good idea or? I was even thinking for main page to load them from DB because they will be changable.
  4. The Raven

    JavaScript Could anyone suggest some improvements for this?

    What about this: window.onload = function() { const containers = document.querySelectorAll("[class^='video-container']"); const exitButton = document.querySelector(".exitA"); containers.forEach(container => { const heartPiece = container.querySelector(".heart")...
  5. The Raven

    HTML & CSS PageSpeed Insights bad score

    Yes, I know that. I've seen that many times and did plenty of things to fix that but even tough it works for PC, for phone it doesn't change at all. They ask me to use modern formats and when I do, no change. They tell me to reduce image size, I do so and no change on mobile...
  6. The Raven

    HTML & CSS PageSpeed Insights bad score

    Main website: https://almarsguides.com/ Test one: https://test.almarsguides.com/ I am doing right now on test these changes in terms of size. They are compressed in terms of size and also have webp compatiblity (only main page). I am testing on my PC with cable connection. They do say what to...
  7. The Raven

    HTML & CSS PageSpeed Insights bad score

    I am unsure if this is the correct place for topic, if it's not, please move to the correct forum. Anyway.. I redesigned my website and after checking its speed, it failed misserably here https://pagespeed.web.dev/ For phone: And for PC: Another example are large images (they say). It...
  8. The Raven

    JavaScript Is element.addEventListener universal or do I need jQuery?

    I would be preferable to use syntax for given language when using. for instance: $('#button').on('click', function() { // Do something here });
  9. The Raven

    JavaScript Call Ajax everytime the button is clicked

    Solution found. Had to add another function around it like this: function callImage() { // Random images generated thanks to free API: https://github.com/jigsawpieces/dog-api-images $.ajax({ url: 'https://dog.ceo/api/breeds/image/random', type: 'GET', dataType...
  10. The Raven

    JavaScript Call Ajax everytime the button is clicked

    My code: $(document).ready(function() { // Random images generated thanks to free API: https://github.com/jigsawpieces/dog-api-images $.ajax({ url: 'https://dog.ceo/api/breeds/image/random', // Replace with your JSON API URL type: 'GET', dataType: 'json'...
  11. The Raven

    JavaScript AI generated images for forum

    In case somebody need answer to this quetsion, here is the solution: Communicating with the API in vanilla js (no server side stuff)
  12. The Raven

    Hello mini world

    Henlo, welcome :D
  13. The Raven

    JavaScript AI generated images for forum

    Yes, but I don't want any of those, I want javascript (vanilla).
  14. The Raven

    JavaScript AI generated images for forum

    Could you please give me the MOST basic example on how it's done with text input? Send text to them, retrieve image. That's it.
  15. The Raven

    JavaScript AI generated images for forum

    Is this pure JS or some framework? Because I am after pure JS.
  16. The Raven

    JavaScript How to prevent validation based on latest action

    Waait, wait, I am confused. What you click and what you want to happen? Because i click buttons and nothing happens
  17. The Raven

    JavaScript How to prevent validation based on latest action

    Why don't you disable the checkbox you clicked right after being clicked?
  18. The Raven

    JavaScript AI generated images for forum

    Is there any free API where I could allow user to enter a text prompt, then do async request and get the image to show him?
  19. The Raven

    Read Me How did you find us?

    I found this forum via the forum "Forum Promotion". :D
Back
Top Bottom