• Resolved imjino

    (@imjino)


    Hello, supporter
    I need an option that doesn’t move specific javascript to the footer (when Combination Feature is enabled).
    Issue: I add the Native Ads code of Amazon in the post content, but it will be moved to the footer. So, all ads will be displayed below the footer.
    Please consider.
    Best,
    Jino

Viewing 15 replies - 1 through 15 (of 30 total)
  • Plugin Support Cold Egg

    (@eric780217)

    Hi Jino,

    You may want to try:

    • Make your JS code as inline JS code to avoid optimization, refer
      inline

    Let us know if it works or not.

    Best,
    Eric

    Plugin Support Cold Egg

    (@eric780217)

    Hi Jino,

    There is another method to bypass the optimize by adding attribute data-optimized="0", e.g. <script data-optimized="0" src='xxxx'></script>.

    • This reply was modified 7 years, 4 months ago by Cold Egg.
    Thread Starter imjino

    (@imjino)

    Thank you, Eric.
    But both of these methods have not solved my problem.
    – The javascript is the 3rd partner file, I can not inline them.
    – Method 2: They still will be moved to the end of the webpage.
    Any advice here?

    Plugin Support Hai Zheng?

    (@hailite)

    Please set the debug level to advanced and give the debug log.

    There you should see if that file is recognized and moved or not.

    Thread Starter imjino

    (@imjino)

    Hello @hailite
    This is the log file.
    https://drive.google.com/file/d/1xpg2BsQoUj-fah9RrvE8o9Gjm46N3kYg/view
    I am using Autoptimize plugin instead that option!

    • This reply was modified 7 years, 4 months ago by imjino.
    • This reply was modified 7 years, 4 months ago by imjino. Reason: Updated the log file
    Plugin Support Hai Zheng?

    (@hailite)

    Can you indicate which file you want to keep the position?

    If this log is not related to the unexpected position, it won’t help.

    Thread Starter imjino

    (@imjino)

    <script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>

    and

    <script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=92597f4c-72a2-4733-a847-9c773baf41da"></script>

    Thanks so much Hailite

    Plugin Support Hai Zheng?

    (@hailite)

    I checked https://enjoythewild.com/best-backpacking-tent-under-100/ Looks its not in header or footer.

    Can you do the following for now:

    1. Disable html minify so we can check and discuss the position with you easily.

    2. Set data-optimized as Eric said.

    Then purge all and give a msg here.

    Thread Starter imjino

    (@imjino)

    All done
    Please check @hailite

    (If I minify/combine by Litespeed cache’s feature, the ads from the end of the article and inside the sidebar will be removed to the end of the webpage.)

    • This reply was modified 7 years, 4 months ago by imjino.
    Plugin Support Hai Zheng?

    (@hailite)

    Bug confirmed and fixed. It is related to dash usage in attribute parsing.

    Will be included in next release.

    Thanks a lot for your feedback.

    Thread Starter imjino

    (@imjino)

    Thank so much @hailite.
    I hope it will be fixed in the next release. Because I don’t want to use a lot of plugin on my website. Litespeed cache is the best caching plugin I know. I had to leave Wp rocket licensed to love your plugin!
    Another feature I wish is creating the .webp version of the image from Litespeed cache. Please consider it.
    Best

    • This reply was modified 7 years, 4 months ago by imjino. Reason: Fix grammar error!
    Plugin Support Hai Zheng?

    (@hailite)

    The .webp version has been there since v1.6.2.

    Thread Starter imjino

    (@imjino)

    Yes, I know.
    I just want to talk about image conversion from png, jpg to webp version.
    Thank so much.

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi, imjino

    We’re not sure what you mean. Are you suggesting we have an option to convert the original image to WebP without doing the other optimization?

    Thread Starter imjino

    (@imjino)

    Yes, Lisa
    I wish you support that option to convert the original image to WebP.

    Regard,

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Don’t move specific javascript so footer option’ is closed to new replies.